IMapLayerArrows.Remove

Syntax

Remove(Index: Integer);

Parameters

Index - arrow index in the collection.

Description

The Remove method removes the arrow from the collection by the specified index.

Example

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:

IMapLayerArrows