ITabHyperlink.Color

Syntax

Color: IGxColor;

Description

The Color property determines the color of a hyperlink in a cell.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Rep: IPrxReport;

Tab: ITabSheet;

Range: ITabRange;

Hyperlink: ITabHyperlink;

Begin

MB:=MetabaseClass.Active;

MObj:=MB.ItemById("Reg_rep").Edit;

Rep:=MObj As IPrxReport;

Tab:=Rep.ActiveSheet.Table;

Range:=Tab.Cell(0,0);

Hyperlink:=Range.Style.Hyperlink;

Hyperlink.Color:=GxColor.FromName("Red");

MObj.Save;

End Sub Main;

As a result the color red will be used for the hyperlink in the "A0" cell on the active sheet of a regular report.

See also:

ITabHyperlink