This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IA > IAnnotationConstructionWindow Interface (ArcObjects .NET 10.4 SDK) |
Provides access to the annotation construction window.
Description | ||
---|---|---|
Visible | Indicates whether the annotation construction window is visible. |
CoClasses and Classes | Description |
---|---|
AnnotationConstructionWindow | The Annotation Construction Window. |
Use IEditor::FindExtension to access the AnnotationConstructionWindow. See the code examples below to get a reference to the AnnotationConstructionWindow.
public void GetAnnotationConstructionWindowByCLSID()
{
//If your project is an Add-In you are given the Application. Otherwise you can get the app from the
//hook parameter.
UID editorUID=new UIDClass();
editorUID.Value="esriEditor.Editor";
_Editor=ArcMap.Application.FindExtensionByCLSID(editorUID) as IEditor;
UID annoWinUid=new UIDClass();
annoWinUid.Value="esriEditor.AnnotationConstructionWindow";
IAnnotationConstructionWindow annoDialog=editor.FindExtension(annoWinUid) as IAnnotationConstructionWindow;
}
Public Sub GetAnnotationConstructionWindowByCLSID()
Dim eUID As UID=New UIDClass()
eUID.Value="esriEditor.Editor"
'This Code would be used in an Add-in, if the project is not an add-in the Application object can be 'obtained from the hook parameter.
_Editor=TryCast(My.ArcMap.Application.FindExtensionByCLSID(eUID), IEditor)
Dim annoUID As UID=New UIDClass()
annoUID.Value="esriEditor.AnnotationConstructionWindow"
Dim annoConstructionWindow As IAnnotationConstructionWindow=TryCast(_Editor.FindExtension (annoUID), IAnnotationConstructionWindow)
End Sub