ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / GetGraphicOutline Method
The parent container of the graphic's parent graphic element
The graphic to be outlined

In This Topic
    GetGraphicOutline Method (IGraphicFactory)
    In This Topic
    Get the outline geometry for the input CIMGraphic.
    Syntax
    Function GetGraphicOutline( _
       ByVal container As IElementContainer, _
       ByVal graphic As CIMGraphic _
    ) As Geometry

    Parameters

    container
    The parent container of the graphic's parent graphic element
    graphic
    The graphic to be outlined

    Return Value

    The outline geometry
    Remarks
    The graphic must belong to a graphic element participating in a layout or in a graphic layer. Refer to GraphicElement.GetGraphic to retrieve the ArcGIS.Core.CIM.CIMGraphic associated with a GraphicElement.The parent container must also be associated with the current active view (either LayoutView or MapView depending on whether the container is a layout or graphics layer) or an System.ArgumentException will be thrown.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also