This document is archived and information here might be outdated. Recommended version. |
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--;
}
}