ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElement Interface / ConvertToGraphics Method

In This Topic
    ConvertToGraphics Method (IElement)
    In This Topic
    Convert the element to graphics. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Function ConvertToGraphics() As IList(Of IElement)
    IList<IElement> ConvertToGraphics()

    Return Value

    The list result will contain just one, selected GroupElement that contains all the individual element within it.
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If the element cannot be converted then null is returned. Refer to CanConvertToGraphics
    . The element is removed from the layout and the new graphic elements are added in its place.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also