ArcGIS Pro 2.7 API Reference Guide
SetClipGeometry Method

ArcGIS.Desktop.Mapping Namespace > Map Class : SetClipGeometry Method
The clip polygon
The border symbol to use or null
Set map clipping to the provided clip polygon. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public void SetClipGeometry( 
   Polygon clipPolygon,
   CIMLineSymbol border
)
Public Sub SetClipGeometry( _
   ByVal clipPolygon As Polygon, _
   ByVal border As CIMLineSymbol _
) 

Parameters

clipPolygon
The clip polygon
border
The border symbol to use or null
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
clipPolygon cannot be null
Remarks
If the clip polygon is not in the spatial reference of the map it will be projected. Clipping will be set to ArcGIS.Core.CIM.ClippingMode.CustomShape. If the border symbol is null then the existing ArcGIS.Core.CIM.CIMMap.ClippingAreaBorderSymbol will be used. If ClippingAreaBorderSymbol is also null then a default line symbol will be assigned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members