IVZTreeMap.LabelAutoColor

Syntax

LabelAutoColor: 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.

Example

Executing the example requires that the repository contains an express report with the EXP identifier. The unit containing the example should have links to Express, Metabase and Visualizators assemblies. The specified 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;
    EaxAnalyzer: IEaxAnalyzer;
    TreeMap: IVZTreeMap;
Begin
    // Get the current repository
    Metabase := MetabaseClass.Active;
    // Get express report
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get tree map
    TreeMap := EaxAnalyzer.TreeMap.TreeMap;
    // Set text labels color from settings
    TreeMap.LabelAutoColor := False;
    // Get 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.

See also:

IVZTreeMap