IMapArrow.TextForegroundColor

Syntax

TextForegroundColor: IGxColor;

Description

The TextForegroundColor property determines arrow label color.

Example

The module is connected to the regular report, which sheet contains the map.

Sub Arrow;

Var

Map: IMap;

Layer: IMapLayer;

Arrows: IMapLayerArrows;

Arrow: IMapArrow;

Begin

Map := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IMap;

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

Arrows := Layer.Arrows;

Arrows.CreateByIDs(98, 46);

Arrow := Arrows.Item(0);

Arrow.Text := "Flow";

Arrow.TextDirection := MapArrowTextDirection.Rotated;

Arrow.TextForegroundColor := GxColor.FromName("Red");

Map.Refresh;

End Sub Arrow;

After executing the example an arrow is created, the arrow label text and the label color are determined:

See also:

IMapArrow