Finds the extension given an id.
[Visual Basic .NET] Public Function FindExtension ( _ ByVal extensionID As UID _ ) As IExtension
[C#] public IExtension FindExtension ( UID extensionID );
Product Availability
Available with ArcGIS Desktop.
Remarks
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.
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.
[C#]
///
/// 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;
}