ArcGIS Pro 3.4 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
Version

GetGraphicOutline Method (IGraphicFactory)
Get the outline geometry for the input CIMGraphic.
Syntax

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