ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IElementFactory Interface / CreatePictureGraphicElement Method
The parent element container
The picture graphic envelope (frame) or center point
The url of the image to use
An element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreatePictureGraphicElement Method (IElementFactory)
    In This Topic
    Creates a picture graphic element based on the input geometry and symbol.
    Syntax
    Function CreatePictureGraphicElement( _
       ByVal elementContainer As IElementContainer, _
       ByVal frameOrLocation As Geometry, _
       ByVal url As String, _
       Optional ByVal elementName As String, _
       Optional ByVal select As Boolean, _
       Optional ByVal elementInfo As ElementInfo _
    ) As GraphicElement

    Parameters

    elementContainer
    The parent element container
    frameOrLocation
    The picture graphic envelope (frame) or center point
    url
    The url of the image to use
    elementName
    An element name (optional)
    select
    Select after create flag (default is true) (optional)
    elementInfo
    Additional element properties (optional)

    Return Value

    Remarks
    If a point is specified, the picture frame is sized to the extent of the content. If an envelope is specified, the content is sized to fit the extent of the frame.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also