Name: String;
The Name property determines the name of a style.
Any name that reflects style purpose can be specified as a value.
On working with a style obtained for a table of any Prognoz Platform tool (analytical queries, regular reports and so on) it is prohibited to use the Not applied name. On working with a style obtained for a table of any Prognoz Platform tool (analytical queries, regular reports and so on) it is prohibited to use the Not applied name. This value is reserved for internal use.
Executing the example requires a form, a button on this form named Button1, the component UiTabSheet named UiTabSheet1 and the component TabSheetBox.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Range: ITabRange;
TSheet: ITabSheet;
TableStyles: ITabTableStyles;
TableStyle: ITabTableStyle;
s: String;
Begin
TSheet := UiTabSheet1.TabSheet;
Range := TSheet.View.Selection.Range;
TableStyles := Range.TableStyles;
TableStyle := TableStyles.Add;
s := TableStyle.Name;
End Sub Button1OnClick;
After executing the example the s variable stores the name of the formatting style.
See also: