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


IEditor3.RemoveAllTemplatesInLayer 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.RemoveAllTemplatesInLayer Method
ArcGIS Developer Help

IEditor3.RemoveAllTemplatesInLayer Method

Removes all templates from the specified layer.

[Visual Basic .NET]
Public Sub RemoveAllTemplatesInLayer ( _
    ByVal layer As ILayer _
)
[C#]
public void RemoveAllTemplatesInLayer (
    ILayer layer
);

Product Availability

Available with ArcGIS Desktop.
[C#]
//To remove a layers templates you need a reference to the map document
//and the layer for which you want to remove templates.
m_mxdoc = m_app.Document as IMxDocument;
ILayer pLayer = m_mxdoc.FocusMap.get_Layer(1);
m_editor.RemoveAllTemplatesInLayer(pLayer);

See Also

IEditor3 Interface