ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / IPresentationElementFactory Interface / CreateGraphicElement Method / CreateGraphicElement(IElementContainer,Geometry,CIMSymbol,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 geometry to be used for the graphic element
The symbol to be used for the graphic element (optional)
An element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreateGraphicElement(IElementContainer,Geometry,CIMSymbol,String,Boolean,ElementInfo) Method
    In This Topic
    Creates a ArcGIS.Desktop.Layouts.GraphicElement based on the input geometry and associated symbol and properties (optional).
    Syntax
    Overloads Function CreateGraphicElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal geometry As Geometry, _
       Optional ByVal symbol As CIMSymbol, _
       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.
    geometry
    The geometry to be used for the graphic element
    symbol
    The symbol to be used for the graphic element (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