ITreeListColumn.Position

Fore Syntax

Position: Integer;

Fore.NET Syntax

Position: integer;

Description

The Position property determines a column position.

Comments

By default, the number of position equals to the index of the current column (ITreeListColumn.Index).

The number of position must be not less than 0 and not greater than ITreeListColumns.Count.

Fore Example

Executing the example requires a form containing the Button component with the Button1 identifier and the TreeList component with the TreeList1 identifier. At least two columns must be added to the TreeList1 component. The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    TreeList1.Columns.Item(0).Position := 1;
End Sub Button1OnClick;

After executing the example the first and the second table columns exchange their positions.

Fore.NET Example

Executing the example requires a form containing the Button component with the button1 identifier and the TreeListNet component with the treeListNet1 identifier. At least two columns must be added to the treeListNet1 component. The example is a handler of the Click event for the button1 component.

Imports Prognoz.Platform.Interop.Forms;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Begin
    treeListNet1.CtrlBox.Columns.Item[0].Position := 1;
End Sub;

The result of the Fore.NET example execution matches with that in the Fore example.

See also:

ITreeListColumn