This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor3 Interface > IEditor3.RemoveTemplate Method (ArcObjects .NET 10.5 SDK) |
Removes the specified edit template.
[Visual Basic .NET] Public Sub RemoveTemplate ( _ ByVal editTemplate As IEditTemplate _ )
[C#] public void RemoveTemplate ( IEditTemplate editTemplate );
//Here is an example looping thru the editor templates and removing them one by one.
for (int i=0; i <= m_editor.TemplateCount; i++)
{
if (m_editor.TemplateCount > 0)
{
IEditTemplate removedTemplate=m_editor.get_Template(i);
m_editor.RemoveTemplate(removedTemplate);
i--;
}
}