Legend: IMapLegend;
Legend: Prognoz.Platform.Interop.Map.IMapLegend;
The Legend property returns parameters of the legend of express report map.
To get parameters of express report map, use the IEaxMap.Map property.
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.
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: