IMapTopobaseShape.OriginOffset

Syntax

OriginOffset: IGxPointF;

Description

The OriginOffset property determines parameters of the arrow anchor point.

Example

Executing the example requires a form with the Button1 button, the MapBox and UiMap components with a loaded map. Map arrows must be set up.

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

Var

M: IMap;

Point: IGxPointF;

Layer: IMapLayer;

Shape: IMapTopobaseShape;

Begin

M := UiMap1.Map;

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

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

Point := Shape.OriginOffset;

Point.Offset(0.1, 0.3);

OriginOffset.BarOriginOffset := Point;

End Sub Button1OnClick;

After executing the example on clicking the button the arrow of the first area is displaced for "0.1" in the X-direction and for "0.3" in the Y-direction.

See also:

IMapTopobaseShape