ITabTableStyles.Item

Syntax

Item(Index: Integer): ITabTableStyle;

Parameters

Index - the index of the style, which should be received.

Description

The Item property returns the specified formatting style from 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;

s: String;

Begin

TSheet := UiTabSheet1.TabSheet;

TTStyles := TSheet.TableStyles;

TTStyles.Add;

TStyle := TTStyles.Item(0);

s := TStyle.Name;

End Sub Button1OnClick;

After executing the example the "s" variable will contain the name of the first style in the collection.

See also:

ITabTableStyles