ArcObjects Library Reference (Framework)  

ITemplates.Count Property

The number of templates associated with the current document.

[Visual Basic .NET]
Public ReadOnly Property Count As Integer
[C#]
public int Count {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

In ArcCatalog, Count is always 1. The Normal template is the only template or document loaded.
In ArcMap, Count is either 2 or 3. The Normal template and a document are always loaded. If there is also a base template loaded then the count becomes 3.

See Also

ITemplates Interface

.NET Snippets

Display Template Information in MessageBox | Get Document Path