ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapSurroundStyleItem Class / MapSurround Property
Example

In This Topic
    MapSurround Property
    In This Topic
    Gets or sets the ArcGIS.Core.CIM.CIMMapSurround of the map surround style item.
    Syntax
    public CIMMapSurround MapSurround {get; set;}
    Public Property MapSurround As CIMMapSurround
    Exceptions
    ExceptionDescription
    This property must be called within the lambda passed to QueuedTask.Run
    Example
    Get map surround from MapSurroundStyleItem
    MapSurroundStyleItem mapSurroundItem = null;
    CIMMapSurround mapSurround = await QueuedTask.Run<CIMMapSurround>(() =>
    {
      return mapSurroundItem.MapSurround;
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also