ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / PresentationElementFactory Class / CreatePredefinedShapeGraphicElement Method / CreatePredefinedShapeGraphicElement(IElementContainer,PredefinedShape,Envelope,CIMPolygonSymbol,String,Boolean,ElementInfo) Method
The parent element container. It can be a presentation page or a group element that is associated with a presentation page.
The shape type of the graphic
The graphic bounding box
The symbol to be used with the graphic (optional)
An element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreatePredefinedShapeGraphicElement(IElementContainer,PredefinedShape,Envelope,CIMPolygonSymbol,String,Boolean,ElementInfo) Method
    In This Topic
    Creates a polygon graphic of the specified ArcGIS.Desktop.Layouts.PredefinedShape using the provided location, optional size dimensions, and symbol.
    Syntax
    Public Overloads Function CreatePredefinedShapeGraphicElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal shapeType As PredefinedShape, _
       ByVal bounds As Envelope, _
       Optional ByVal polySymbol As CIMPolygonSymbol, _
       Optional ByVal elementName As String, _
       Optional ByVal select As Boolean, _
       Optional ByVal elementInfo As ElementInfo _
    ) As GraphicElement

    Parameters

    elementContainer
    The parent element container. It can be a presentation page or a group element that is associated with a presentation page.
    shapeType
    The shape type of the graphic
    bounds
    The graphic bounding box
    polySymbol
    The symbol to be used with the graphic (optional)
    elementName
    An element name (optional)
    select
    Select after create flag (default is true) (optional)
    elementInfo
    Additional element properties (optional)

    Return Value

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also