ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / AddComponentTemplate Method
The group template the component template is to be added to.
The layer for the component part.
The name of the template used as the component part.
The builder method for the component part.
Options for the component part.

In This Topic
    AddComponentTemplate Method
    In This Topic
    Adds a component part to the group template. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    groupTemplate
    The group template the component template is to be added to.
    layer
    The layer for the component part.
    templateName
    The name of the template used as the component part.
    builderMethod
    The builder method for the component part.
    options
    Options for the component part.

    Return Value

    The updated group template object.
    Exceptions
    ExceptionDescription
    The layer must exist and the template name must exist on the layer.
    This method must be called on the Main CIM Thread. Use QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also