Item(Index: Integer): IMapArrow;
Index - arrow index in the collection.
The Item method returns the arrow by the specified index.
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: