ArcObjects Library Reference (Carto)  

IMap.MapSurroundCount Property

Number of map surrounds associated with the map.

[Visual Basic .NET]
Public ReadOnly Property MapSurroundCount As Integer
[C#]
public int MapSurroundCount {get;}
[C++]
HRESULT get_MapSurroundCount(
  long* Count
);
[C++]

Parameters

Count [out, retval]   Count is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

MapSurround objects include Legends, North Arrows, Scale Bars, and Scale Text. Use this property in conjunction with the MapSurround property to loop through all of the MapSurround objects associated with a Map.
See AddMapSurround for information on adding new MapSurrounds to a Map.
 

See Also

IMap Interface | IMap.MapSurround Property | IMap.MapSurroundCount Property | IMap.AddMapSurround Method