ITabRegion.Range

Syntax

Range: ITabRange;

Description

The Range property determines the table range where a region is located.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Range: ITabRange;

Regs: ITabRegions;

Reg: ITabRegion;

Begin

Range := UiTabSheet1.TabSheet.View.Selection.Range;

Regs := UiTabSheet1.TabSheet.Regions;

Reg := Regs.Add;

Reg.Range := Range;

Reg.Visible := True;

Reg.BackgroundColor := GxColor.FromName("Red");

End Sub Button1OnClick;

As a result in the selected table region a new region will be created, and the background of this region will be red.

See also:

ITabRegion