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


IEditor3.RemoveTemplate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor3 Interface > IEditor3.RemoveTemplate Method
ArcGIS Developer Help

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