ITabRegion.BackgroundColor

Syntax

BackgroundColor: IGxColor;

Description

The BackgroundColor property determines the table region background color. By default the color is transparent.

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