ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IGraphicFactory Interface / CreateLegendPatchGraphic Method
The legend patch shape
The extent of the graphic element
The symbol to be used with the graphic (optional)

In This Topic
    CreateLegendPatchGraphic Method (IGraphicFactory)
    In This Topic
    Create a polygon or line graphic of the specified ArcGIS.Core.CIM.PatchShape using the provided extent and symbol
    Syntax
    Function CreateLegendPatchGraphic( _
       ByVal patchShape As PatchShape, _
       ByVal extent As Envelope, _
       Optional ByVal patchSymbol As CIMSymbol _
    ) As CIMGraphic

    Parameters

    patchShape
    The legend patch shape
    extent
    The extent of the graphic element
    patchSymbol
    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