IEaxMap.Legend

Fore Syntax

Legend: IMapLegend;

Fore.NET Syntax

Legend: Prognoz.Platform.Interop.Map.IMapLegend;

Description

The Legend property returns parameters of the legend of express report map.

Comments

To get parameters of express report map, use the IEaxMap.Map property.

Fore Example

Executing the example requires that the repository contains an express report with the EXPR_MAP identifier.

Add links to the Metabase, Express and Map system assemblies.

Sub Main;
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    EMap: IEaxMap;
    Legend: IMapLegend;
Begin
    MB := MetabaseClass.Active;
    Expr := MB.ItemById(
"EXPR_MAP").Bind As IEaxAnalyzer;
    EMap := Expr.Map;
    Legend := EMap.Legend;
End Sub Main;

After executing the example the Legend variable contains parameters of a map legend.

Fore.NET Example

The requirements and result of Fore.NET Example execution are the same as in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Map;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    EMap: IEaxMap;
    Legend: IMapLegend;
Begin
    MB := Params.Metabase;
    Expr := MB.ItemById["EXPR_MAP"].Bind() As IEaxAnalyzer;
    EMap := Expr.Map;
    Legend := EMap.Legend;
End Sub;

See also:

IEaxMap