ITabTableStyle.Range

Syntax

Range: ITabRange;

Description

The Range property determines the cell range, for which a formatting style is created.

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;
    s: String;
Begin
    TSheet := UiTabSheet1.TabSheet;
    Range := TSheet.View.Selection.Range;
    TTStyles := Range.TableStyles;
    TStyle := TTStyles.Add;
    s := TStyle.Range.Address;
End Sub Button1OnClick;

After executing the example the "s" variable stores the address of the cell range for which the formatting style has been created.

See also:

ITabTableStyle