ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / CreatePredefinedShapeGraphic Method / CreatePredefinedShapeGraphic(PredefinedShape,Envelope,CIMPolygonSymbol) Method
The shape type of the graphic
The graphic bounding box
The symbol to be used with the graphic (optional)
Version

CreatePredefinedShapeGraphic(PredefinedShape,Envelope,CIMPolygonSymbol) Method
Create a polygon graphic of the specified PredefinedShape using the provided bounds and symbol
Syntax

Parameters

shapeType
The shape type of the graphic
bounds
The graphic bounding box
polySymbol
The symbol to be used with the graphic (optional)

Return Value

Remarks
For PredefinedShape.Circle, the height of the resulting bounding box for the graphic will be set equal to the width. For PredefinedShape.RoundedRectangle, a default corner rounding of 20% will be applied.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also