ITabTableStyle.AssignPredefined

Syntax

AssignPredefined(Style: TabTablePredefinedStyle);

Parameters

Style is the style, the parameters of which should be assigned for the current table formatting style.

Description

The Assign method sets table formatting style parameters according to the formatting style parameters passed via the Style parameter.

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

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;

After executing the example, a formatting style for the selected cell range (A0:C2) is created. The parameters of the created style are based on the parameters of the basic dark red formatting style:

See also:

ITabTableStyle