This document is archived and information here might be outdated. Recommended version. |
Finds the extension given an id.
[Visual Basic .NET] Public Function FindExtension ( _ ByVal extensionID As UID _ ) As IExtension
[C#] public IExtension FindExtension ( UID extensionID );
///
/// 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;
}