ITabRange.EntireColumns

Syntax

EntireColumns: ITabRange;

Description

The EntireColumn property returns a range, consisting only of the columns, included in the current range.

Example

Executing the example requires a form with the Button1 button located on it, the TabSheetBox component and the UiTabSheet component named UiTabSheet1. 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.

See also:

ITabRange