This document is archived and information here might be outdated. Recommended version. |
Provides access to the Attribute Window.
Name | Description | |
---|---|---|
ObjectInspector | Current object attribute inspector. | |
Visible | Indicates if Attribute Window is visible. |
Classes | Description |
---|---|
AttributeWindow | Dialog for inspecting selected/editable features. |
Use this interface to hide or show the Attributes window and access the object inspector currently loaded inside of it. A reference can be obtained using the IEditor::FindExtension method.
Private IEditor m_editor;
Private IApplication m_app;
//A reference to IApplication would occur in the ICommand::OnCreate method.
//The example code below is from an Add-In, so ArcMap is provided.
...
IEditor m_editor;
UID editorUiD = new UIDClass();
editorUiD.Value = "esriEditor.Editor";
m_editor = ArcMap.Application.FindExtensionByCLSID(editorUiD) as IEditor;
IAttributeWindow attWin;
UID attributeuID = new UIDClass();
attributeuID.Value = "esriEditor.AttributeWindow";
attWin = m_editor.FindExtension(attributeuID) as IAttributeWindow;
attWin.Visible = true;
Dim m_editor as IEditor
Dim editUiD as New UID
Dim attWindow as IAttributeWindow
Dim attWindowiD As New UID
'm_application comes from hook parameter in ICommand::OnCreate method.
'Or is provided in Add-in's with the ArcMap object.
edituiD.Value = "esriEditor.Editor"
m_editor = m_application.FindExtensionByCLSID(editUiD)
attWindowiD = "esriEditor.AttributeWindow"
attWindow = m_editor.FindExtension(attWindowiD)