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


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

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