IMapLayerArrows.Clear

Syntax

Clear;

Description

The Clear method clears an arrows collection.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Map : IMap;

Begin

Metabase := MetabaseClass.Active;

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

Report := MetabaseObject As IPrxReport;

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

Map.Layers.FindByName("Regions").Arrows.Clear;

Report.MetabaseObject.Save;

End Sub main;

After executing the example the collection of map arrows is cleared. In this example, Report is an identifier of the regular report, which sheet contains the map.

See also:

IMapLayerArrows