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

To execute the example a form, a button on this form named Button1, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component are required are required.

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