IMapLayerArrows.FindByIDs

Syntax

FindByIDs(OriginID: Integer; DestID: Integer): IMapArrow;

Parameters

OriginID - identifier of the territory being the arrow origin.

DestID - identifier of the territory being the arrow end point.

Description

The FindByIDs method searches for an arrow by the specified identifiers of connected territories.

Example

Sub main;

Var

Metabase : IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Map : IMap;

Arrow : IMapArrow;

Begin

Metabase := MetabaseClass.Active;

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

Report := MetabaseObject As IPrxReport;

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

Arrow := Map.Layers.FindByName("Regions").Arrows.FindByIDs(98,46);

Arrow.Color := GxColor.FromName("Red");

Report.MetabaseObject.Save;

End Sub main;

After executing the example the found arrow color is set to the specified one. In this example, Report is an identifier of the regular report, which sheet contains the map.

See also:

IMapLayerArrows