IMapArrow.CapLength

Syntax

CapLength: Double;

Description

The CapLength property determines arrow pointer length. The pointer length is determined as a part of the length of line segment between the anchor points of the connected territories. The allowed values lie in the range [0.0; 1.0].

NOTE. The property operates if the IMapArrow.Shape property is set to MapArrowShape.Simple or MapArrowShap.Tailed.

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

Maps: IMap;

Layer: IMapLayer;

Arrows: IMapLayerArrows;

Arrow: IMapArrow;

Begin

Maps := UiMap1.Map;

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

Arrows := Layer.Arrows;

Arrows.CreateByIDs(98, 46);

Arrow := Arrows.Item(0);

Arrow.Shape:=MapArrowShape.Tailed;

Arrow.CapLength := 0.1;

End Sub Button1OnClick;

After executing the example the arrow with the specified pointer length is created:

See also:

IMapArrow