ITabHyperlink.UseGlobalSettings

Syntax

UseGlobalSettings: TriState;

Description

The UseGlobalSettings property determines whether global style settings are applied to the hyperlink.

Example

Executing the example requires that the repository contains a regular report with the REGL_REP identifier. This report must contain a sheet named Sheet2.

Sub UserProc;
Var
    MB: IMetabase;
    Rep: IPrxReport;
    SheetT: IPrxTable;
    Tab: ITabSheet;
    Range: ITabRange;
    Hyperlink: ITabHyperlink;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("REP_TABSHEET").Edit As IPrxReport;
    SheetT := Rep.Sheets.Item(0As IPrxTable;
    Tab := SheetT.TabSheet;
    Range := Tab.Cell(00);
    Hyperlink := Range.Style.Hyperlink;
    Hyperlink.Action := "=Sheet2";
    Hyperlink.Enable := TriState.OnOption;
    Hyperlink.SeparateLinkText := TriState.OnOption;
    Hyperlink.Text := "Goto_List2";
    Hyperlink.Underline := TriState.OffOption;
    Hyperlink.UseGlobalSettings := TriState.OffOption;
    (Rep As IMetabaseObject).Save;
End Sub UserProc;

After executing the example a hyperlink with the Goto_List2 text is created in the A0 cell. Clicking the link sends you to the Sheet2. Global style settings are not applied to this hyperlink, and the hyperlink is not underlined.

See also:

ITabHyperlink