ArcObjects Library Reference (Carto)  

IMap.MapSurroundCount Property

Number of map surrounds associated with the map.

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


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

Product Availability

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


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.MapSurroundCount Property | IMap.MapSurround Property | IMap.AddMapSurround Method