ArcObjects Library Reference (Framework)  

ITemplates Interface

Provides access to members that query the templates collection.

Product Availability

Available with ArcGIS Desktop.

Description

The Templates collection references the template objects that are currently loaded with the application. A template is a document that is used as a starting point for creating new documents. It carries customizations of several typesuser interface, VBA project, and application-specific data. ArcMap has two or three templates loaded with an application. If the document is based on the Normal template, two items are in the templates collection. If the document is based on a project template, three items are in the templates collection. ArcCatalog always has one item in the templates collection; this item represents Normal.gxt.

When To Use

The ITemplates interface allows you to get a count of the loaded templates and get the pathnames of those templates. Use IApplication.Templates to get a reference to the templates collection.

Members

Description
Read-only property Count The number of templates associated with the current document.
Read-only property Item The pathname to the template at the given index.

CoClasses that implement ITemplates

CoClasses and Classes Description
Templates Templates collection object.

Remarks

Note, the esriDisplay library contains an object called Template that is unrelated to this Templates collection.

See Also

IApplication.Templates Property

.NET Snippets

Get Document Path | Display Template Information in MessageBox |