IMapLayerArrows.Item

Syntax

Item(Index: Integer): IMapArrow;

Parameters

Index - arrow index in the collection.

Description

The Item method returns the arrow by the specified index.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Map : IMap;

Arrow : IMapArrow;

Arrows : IMapLayerArrows;

Begin

Metabase := MetabaseClass.Active;

MetabaseObject := Metabase.ItemById("Report").Edit;

Report := MetabaseObject As IPrxReport;

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

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

Arrow := Arrows.Item(1); // the arrow retrieved by index

Arrow.Color := GxColor.FromName("Blue");

Report.MetabaseObject.Save;

End Sub main;

After executing the example the arrow color is set to blue. In this example, Report is an identifier of the regular report, which sheet contains the map.

See also:

IMapLayerArrows