TemplateInfo

A class that contains information about a prototype feature/object in a DataObjectType.

Property

Type

Description

DefaultTool

esriFeatureEditTool

The default drawing tool associated with the template.

Description

string

Description of the template.

Name

string

Name of the template.

Prototype

DataObject

Contains default values of the properties.

Remarks

The TemplateInfo object is initialized from the information in an EditTemplate in the layer in the map document. Name and Description are obtained from the EditTemplate.Prototype is an instance GraphicFeature that has default values of the properties from the EditTemplate.

The DefaultTool is the drawing tool associated with the EditTemplate. For example, one template may be authored with the polygon drawing tool while another may be authored with the freehand drawing tool.

If layers or tables do not have edit templates defined in the map document, templates are generated by the feature service. For layers with unique value renderers based on the subtype or for tables with a subtype, the default values for the prototype are based on the defaults in the subtype. In all other cases, the default values for the prototype are based on the default field values set in the geodatabase.

11/8/2016