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


IEditor3.RemoveTemplate Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditor3.RemoveTemplate Method

Removes the specified edit template.

[Visual Basic .NET]
Public Sub RemoveTemplate ( _
    ByVal editTemplate As IEditTemplate _
)
[C#]
public void RemoveTemplate (
    IEditTemplate editTemplate
);

Product Availability

Available with ArcGIS Desktop.
[C#]

//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--;

    }

}

See Also

IEditor3 Interface