Remove(Index: Integer);
Index - arrow index in the collection.
The Remove method removes the arrow from the collection by the specified index.
Sub main;
Var
Metabase : IMetabase;
MetabaseObject: IMetabaseObject;
Report: IPrxReport;
Map : IMap;
Arrows : IMapLayerArrows;
Arrow : IMapArrow;
Index : Integer;
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.FindByIDs(98,46);
Index := Arrows.GetIndex(Arrow);
Arrows.Remove(Index);
Report.MetabaseObject.Save;
End Sub main;
After executing the example the arrow is removed from the collection by the specified index.
See also: