Visible: Boolean;
The Visible property determines the visibility of the table region. The default value is False.
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: