EntireRows: ITabRange;
EntireRows: Prognoz.Platform.Interop.Tab.ITabRange;
The EntireRows property returns a range, consisting only of the rows, 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. 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.EntireRows;
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 that consist of the rows included into TRange1.
To execute the example a form with a button named Button1 on it, the TabSheetBox component and the UiTabSheet component named UiTabSheet1 are required. 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.EntireRows;
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 that consist of the rows included into TRange1.
See also: