IsEmpty: Boolean;
The IsEmpty property determines whether table formatting style is set. The property returns True if formatting of one or more style elements is set; it returns False if style formatting for none of the elements is set.
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;
Begin
TSheet := UiTabSheet1.TabSheet;
Range := TSheet.View.Selection.Range;
TTStyles := Range.TableStyles;
TStyle := TTStyles.Add;
If Not (TStyle.IsEmpty) Then
TStyle.IsEmpty := True;
End If;
End Sub Button1OnClick;
After executing the example all formatting settings are reset, if the table style has been set.
See also: