ArcGIS Pro 2.8 API Reference Guide
CreatePresetTemplate Method

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.
Creates a new preset template from the specified set of features.
Syntax
Public Shared Function CreatePresetTemplate( _
   ByVal layer As Layer, _
   ByVal templateName As String, _
   ByVal features As Dictionary(Of Layer,List(Of Long)), _
   Optional ByVal hotPoint As MapPoint _
) As EditingTemplate

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.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members