Provides access to members that query the templates collection.
Available with ArcGIS Desktop.
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 types—user 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.
|Count||The number of templates associated with the current document.|
|Item||The pathname to the template at the given index.|
CoClasses that implement ITemplates
|CoClasses and Classes||Description|
|Templates||Templates collection object.|
Note, the esriDisplay library contains an object called Template that is unrelated to this Templates collection.