This document is archived and information here might be outdated.  Recommended version.


ITemplates Interface (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IT > ITemplates Interface
ArcGIS Developer Help

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

Members

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

Classes that implement ITemplates

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