ArcGIS Pro 2.6 API Reference Guide
MapSurround Property
Example 

ArcGIS.Desktop.Mapping Namespace > MapSurroundStyleItem Class : MapSurround Property
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
MapSurroundStyleItem mapSurroundItem = null;
CIMMapSurround mapSurround = await QueuedTask.Run<CIMMapSurround>(() =>
{
  return mapSurroundItem.MapSurround;
});
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MapSurroundStyleItem Class
MapSurroundStyleItem Members