ITabSheet.TableStyles

Syntax

TableStyles: ITabTableStyles;

Description

The TableStyles property returns collection of table styles.

Example

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

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

Var

Range: ITabRange;

TSheet: ITabSheet;

TTStyles: ITabTableStyles;

TStyle: ITabTableStyle;

Begin

TSheet := UiTabSheet1.TabSheet;

Range := TSheet.View.Selection.Range;

TTStyles := Range.TableStyles;

TStyle := TTStyles.Add;

TStyle.AssignPredefined(TabTablePredefinedStyle.DarkRed);

End Sub Button1OnClick;

As a result for the selected table cells range a style will be created. The parameters of the created style are based on the parameters of the basic dark red formatting style:

See also:

ITabSheet