IMapTerritoryInfo.AttributeName

Syntax

AttributeName: String;

Description

The AttributeName property determines the name of the attribute of the territory info display.

Example

Executing the example requires a form with a button named Button1, the UiMap component named UiMap1 and the MapBox component. The map must be connected to the UiMap1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

MapView: IMapView;

S: String;

TerrI: IMapTerritoryInfo;

Map: IMap;

Begin

Map := UiMap1.Map;

MapView := Map.View;

TerrI := New DxMapTerritoryInfo.Create;

MapView.TerritoryInfo := TerrI;

TerrI.Layer := Map.Layers.FindByName("Regions");

S := TerrI.AttributeName;

End Sub Button1OnClick;

After executing the example the "S" variable stores the name of the attribute of territory info display.

See also:

IMapTerritoryInfo