ArcGIS Pro 2.6 API Reference Guide
AddComponentTemplate Method

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.
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 10, Windows 8.1, Windows 7

See Also

Reference

MappingExtensions Class
MappingExtensions Members