ITabTableStyles.Move

Syntax

Move(IndexFrom: Integer, IndexTo: Integer);

Parameters

IndexFrom - the index of the position of the style, which should be moved.

IndexTo - the index of the position, to which the style should be moved.

Description

The Move method moves a style within the collection.

Example

Executing the example requires a form with the Button1 button located on it, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

TSheet: ITabSheet;

TTStyles: ITabTableStyles;

TStyle: ITabTableStyle;

Begin

TSheet := UiTabSheet1.TabSheet;

TTStyles := TSheet.TableStyles;

TStyle := TTStyles.Add;

TStyle := TTStyles.Add;

TTStyles.Move(0, 1);

End Sub Button1OnClick;

After executing the example the first style will be moved to the second position in the collection.

See also:

ITabTableStyles