IMapTopobaseShape.AttributeValue

Syntax

AttributeValue(AttributeName: String): Variant;

Parameters

AttributeName - name of the attribute, which value needs to be determined.

Description

The property is read-only.

The AttributeValue property returns the value of the area attribute by value name.

Example

Executing the example requires a form with the Button1 button, the MapBox and UiMap components with a loaded map.The map areas attributes need to be set.

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

Var

M: IMap;

Layer: IMapLayer;

Shape: IMapTopobaseShape;

s: String;

Begin

M := UiMap1.Map;

Layer := M.Layers.FindByName("Regions");

Shape := Layer.Shapes.Item(0);

s := Shape.AttributeValue("Attribute1") As String;

End Sub Button1OnClick;

After executing the example on clicking the button to the s variable the value of the specified first area attribute is saved.

See also:

IMapTopobaseShape