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 is set for none of the elements.
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;
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: