Range: ITabRange;
The Range property determines the cell range, for which a formatting style is created.
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
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: