IVZBreadcrumb.ItemsStyle

Fore Syntax

ItemsStyle: IVZLabelStyle;

Fore.NET Syntax

ItemsStyle: Prognoz.Platform.Interop.Visualizators.VZLabelStyle;

Description

The ItemsStyle property determines style of navigation chain elements.

Fore Example

Executing the example requires that the repository contains an express report with the EXP identifier. The module that contains the example should have links to the Express, Metabase, Drawing and Visualizators system assemblies. This procedure should be called from the Main entry point.

Before executing the example, a tree map navigation chain looks as shown on the IVZBreadcrumb Interface Description page. Change font color of text labels of tree map navigation chain:

Sub UserProc;
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    Breadcrumb: IVZBreadcrumb; // Navigation chain
    ItemsStyle: IVZLabelStyle; // Text label style
Begin
    // Get metabase object
    Metabase := MetabaseClass.Active;
    // Get express report object
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
    // Get navigation chain
    Breadcrumb := TreeMap.Breadcrumb;
    // Get style of text labels for the navigation chain
    ItemsStyle := Breadcrumb.ItemsStyle;
    // Change color of text labels font
    ItemsStyle.FontColor := New GxColor.CreateRGB(255229180);
    // Set new style value
    Breadcrumb.ItemsStyle := ItemsStyle;
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the font color of tree map navigation chain text labels is changed:

Fore.NET Example

Executing the example requires that the repository contains an express report with the EXP identifier. The selected procedure is the Main entry point in the Program module of the .NET assembly. The Express, Metabase, Drawing and Visualizators assemblies should be imported to this module from the Prognoz.Platform.Interop system assembly.

Before executing the example, a tree map navigation chain looks as shown on the IVZBreadcrumb Interface Description page. Change font color of text labels of navigation chain:

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
    Breadcrumb: IVZBreadcrumb; // Navigation chain
    ItemsStyle: IVZLabelStyle; // Text label style
    FontColor: GxColor; // Font color
Begin
    // Get metabase object
    Metabase := Params.Metabase;
    // Get express report object
    EaxAnalyzer := Metabase.ItemById["EXP"].Edit() As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
    // Get navigation chain
    Breadcrumb := TreeMap.Breadcrumb;
    // Get style of text labels for the navigation chain
    ItemsStyle := Breadcrumb.ItemsStyle;
    // Change color of text labels font
    FontColor := New GxColor();
    FontColor.CreateRGB(255229180);
    ItemsStyle.FontColor := FontColor;
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save();
End Sub;

The result of the executed example is the same as that, executed for Fore language.

See also:

IVZBreadcrumb