IVZLegendBase.DefaultFormat

Syntax

DefaultFormat: String;

Description

The DefaultFormat property determines legend number format.

Comments

Legend numbers have the following format: #,####0.0000.

Example

Executing the example requires that the repository contains an express report with a map. Change legend number format.

Place the Button, UiErAnalyzer, EaxMapBox components named Button1, UiErAnalyzer1 and EaxMapBox1 correspondingly on the form. For UiErAnalyzer select the Active property to True, OperationMode to Edit and select the express report in the Object property. For EaxMapBox select the UiErAnalyzer1 component in the Source property.

Add links to the Express, Forms, and Visualizators system assemblies.

The example is the OnClick event handler for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Analyzer: IEaxAnalyzer;
    Map: IVZMapChart;
    Legend: IVZLegendBase;
Begin
    Map := UiErAnalyzer1.ErAnalyzer.MapChart.MapChart;
    
// Get map legend
    Legend := Map.Legends.Item(0);
    
// Determine a new format of legend number
    Legend.DefaultFormat := "#,####0.0000";
    
// Refresh map after changes
    UiErAnalyzer1.ErAnalyzer.Map.Refresh;   
End Sub Button1OnClick;

After clicking the button, the legend number format changes to the four decimal points.

See also:

IVZLegendBase