IMapLayerArrows.Count

Syntax

Count : Integer;

Description

The Count property returns the size of arrows collection.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Map : IMap;

Count : Integer;

Begin

Metabase := MetabaseClass.Active;

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

Report := MetabaseObject As IPrxReport;

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

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

Debug.WriteLine(Count.ToString);

End Sub main;

After executing the example the number of map arrows is displayed in the console window. In this example, Report is an identifier of the regular report, which sheet contains the map.

See also:

IMapLayerArrows