Clear;
Clear();
The Clear method is used to clear all table contents.
All cell values and cell contents, formatting of cells, rows and columns, conditional formatting settings are cleared.
Executing the example requires a form, a button on this form named Button1, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Tab: ITabSheet;
Begin
Tab := UiTabSheet1.TabSheet;
Tab.Clear;
End Sub Button1OnClick;
Clicking the Button1 button deletes table data.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Tab;
Private Sub button3_Click(sender: System.Object; e: System.EventArgs);
Var
Tab: ITabSheet;
Begin
Tab := UiTabSheetNet1.TabSheetUi.TabSheet;
Tab.Clear();
End Sub;
See also: