ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / IPresentationElementFactory Interface / CreateGraphicElement Method / CreateGraphicElement(IElementContainer,CIMGraphic,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 input graphic
Element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreateGraphicElement(IElementContainer,CIMGraphic,String,Boolean,ElementInfo) Method
    In This Topic
    Create a ArcGIS.Desktop.Layouts.GraphicElement based on the input ArcGIS.Core.CIM.CIMGraphic and element properties.
    Syntax
    Overloads Function CreateGraphicElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal cimGraphic As CIMGraphic, _
       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.
    cimGraphic
    The input graphic
    elementName
    Element name (optional)
    select
    Select after create flag (default is true) (optional)
    elementInfo
    Additional element properties (optional)

    Return Value

    Remarks
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also