ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / CreateSimpleGraphic Method
The geometry for the resulting graphic
The symbol to be used with the graphic (optional)

In This Topic
    CreateSimpleGraphic Method (IGraphicFactory)
    In This Topic
    Creates a point, line, polygon or text graphic based on the input geometry and symbol.
    Syntax
    CIMGraphic CreateSimpleGraphic( 
       Geometry geometry,
       CIMSymbol symbol
    )
    Function CreateSimpleGraphic( _
       ByVal geometry As Geometry, _
       Optional ByVal symbol As CIMSymbol _
    ) As CIMGraphic

    Parameters

    geometry
    The geometry for the resulting graphic
    symbol
    The symbol to be used with the graphic (optional)

    Return Value

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also