This document is archived and information here might be outdated.  Recommended version.


IMap.MapSurroundCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMap Interface > IMap.MapSurroundCount Property
ArcGIS Developer Help

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(
  System.Int32* 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