IVZTreeMap.LabelAutoColor

Fore Syntax

LabelAutoColor: Boolean;

Fore.NET Syntax

LabelAutoColor: System.Boolean;

Description

The LabelAutoColor property determines the value used to automatically calculate font color of tree map leaf labels.

Comments

If the property is set to True, font color of labels is calculated automatically, if the property is set to False, color value is selected from settings.

Fore Example

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

Set color for text labels of tree map elements from settings:

Sub UserProc;
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
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;
    // Set text labels color from settings
    TreeMap.LabelAutoColor := False;
    // Save express report
    (EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the color of tree map element text labels is selected from settings.

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 and Visualizators assemblies should be imported to this module from the Prognoz.Platform.Interop system assembly.

Set color for text labels of tree map elements from settings:

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase; // Metabase
    EaxAnalyzer: IEaxAnalyzer; // Express report
    TreeMap: IVZTreeMap; // Tree map
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;
    // Set text labels color from settings
    TreeMap.LabelAutoColor := False;
    // 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:

IVZTreeMap