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

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

IEditor.FindExtension Method

Finds the extension given an id.

[Visual Basic .NET]
Public Function FindExtension ( _
    ByVal extensionID As UID _
) As IExtension
public IExtension FindExtension (
    UID extensionID

Product Availability

Available with ArcGIS Desktop.


The FindExtension function provides a hook to the editor's extension objects. All of the extension objects are automatically created/instantiated when the Editor CoClass is created; use FindExtension to get a reference to them.

For example, the AttributeWindow Class is an editor extension. To get a reference to the IAttributeWindow interface use the FindExtension function passing in the GUID of the AttributeWindow Class.
/// The following code example demonstrates how to use the FindExtension property
/// to reference the AttributeWindow. 
public IAttributeWindow GetAttributeWindow() 
  //get editor extension 
  UID editorUID = new UIDClass();
editorUID.Value = "esriEditor.Editor"; IEditor editor = m_application.FindExtensionByCLSID(editorUID) as IEditor; //get AttributeWindow extension UID attributeWindowUID = new UIDClass(); attributeWindowUID.Value = "esriEditor.AttributeWindow"; return editor.FindExtension(attributeWindowUID) as IAttributeWindow; }

See Also

IEditor Interface