EntireColumns: ITabRange;
EntireColumns: Prognoz.Platform.Interop.Tab.ITabRange;
The EntireColumn property returns a range, consisting only of the columns, included in the current range.
To execute the example a form, a button on this form named the Button1, the TabSheetBox component and the UiTabSheet component named UiTabSheet1 are required. The UiTabSheet1 is selected as the data source for the TabSheetBox component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
TSheet: ITabSheet;
TRange1, TRange2: ITabRange;
Begin
TSheet := UiTabSheet1.TabSheet;
TRange1 := TSheet.View.Selection.Range;
TRange2 := TRange1.EntireColumns;
End Sub Button1OnClick;
After clicking the button the variable TRange1 contains link to the currently selected table range. The variable TRange2 contains link to the range consisting of the columns included into TRange1.
To execute the example a form, a button on this form named the Button1, the TabSheetBox component and the UiTabSheet component named UiTabSheet1. The UiTabSheet1 is selected as the data source for the TabSheetBox component.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
TSheet: ITabSheet;
TRange1, TRange2: ITabRange;
Begin
TSheet := UiTabSheetNet1.TabSheetUi.TabSheet;
TRange1 := TSheet.View.Selection.Range;
TRange2 := TRange1.EntireColumns;
End Sub;
After clicking the button the variable TRange1 contains link to the currently selected table range. The variable TRange2 contains link to the range consisting of the columns included into TRange1.
See also: