TextOriginOffset: IGxPointF;
The TextOriginOffset property determines the anchor point parameters of the map layer area label.
Executing the example requires a form with the Button1 button, the MapBox and UiMap components with a loaded map. Map area labels 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.TextOriginOffset;
Point.Offset(0.1, 0.3);
Shape.TextOriginOffset:= Point;
End Sub Button1OnClick;
After executing the example on clicking the button the label of the first area is displaced for "0.1" in the X-direction and for "0.3" in the Y-direction.
See also: