IMapArrow.OriginID

Syntax

OriginID: Integer;

Description

The OriginID property determines identifier of the territory, which is the start point for the arrow.

Example

This unit is connected to the regular report, which sheet contains the map.

Add links to the Map, Report, Tab system assemblies.

Sub Arrow;
Var
    Sheets: IPrxSheets;
    SheetT : IPrxTable;
    Map : IMap;
    Arrow : IMapArrow;
Begin
    Sheets := PrxReport.ActiveReport.Sheets;
    SheetT := Sheets.Item(0As  IPrxTable;
    Map := SheetT.TabSheet.Objects.Item(0).Extension As IMap;
    Arrow := Map.Layers.FindByName("Regions").Arrows.Item(1);
    // Get identifier of the territory, which is the start point for arrow
    SheetT.TabSheet.CellValue(1,1) := Arrow.OriginID;
    // Get name of the territory, which is the start point for arrow
    SheetT.TabSheet.CellValue(2,2) := Arrow.OriginName;
End Sub Arrow;

After executing the example the identifier and name of the region, which is the start point for the arrow are written to the corresponding sheet cell.

See also:

IMapArrow