ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / CreatePresetTemplate Method
The layer the new template is to be added to.
The template name.
The features to include in the preset.
An optional point to use as the point where the preset is placed. If null is provided the centroid of the features will be used.
Version

CreatePresetTemplate Method
Creates a new preset template from the specified set of features.
Syntax

Parameters

layer
The layer the new template is to be added to.
templateName
The template name.
features
The features to include in the preset.
hotPoint
An optional point to use as the point where the preset is placed. If null is provided the centroid of the features will be used.

Return Value

A Task yielding the newly created template. Null if it cannot be created.
Exceptions
ExceptionDescription
Features cannot be null.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also