Item(Index: Integer): ITabTableStyle;
Index - the index of the style, which should be received.
The property is read-only.
The Item property returns the specified formatting style from the collection.
To execute the example a form, a button on this form named Button1, the component UiTabSheet named UiTabSheet1 and the component TabSheetBox are required.
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: