This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IA > IAnnotationEditExtension Interface (ArcObjects .NET 10.4 SDK) |
Provides access to members that control annotation feature editing.
Description | ||
---|---|---|
AnnotationConstructors | The annotation constructors for creating new annotations. | |
ConstructionSymbol | The symbol to be used for newly created annotation features. | |
ConstructionSymbolID | The symbol id of newly created annotation features. | |
ConstructionText | The current text that will be used to construct the annotation. | |
CurrentConstructor | The currently selected annotation constructor. | |
IsAnnotationTarget | Indicates if an annotation feature class is the current editor target. | |
LinkedFeatureID | The linked feature id for the newly created annotation feature. |
CoClasses and Classes | Description |
---|---|
AnnotationEditExtension | An editor extension for creating and editing annotation features. |
Use IEditor::FindExtension to access the AnnotationEditExtension and its interfaces.
Use the code below to get a reference to the AnnotationEditExtension in C#.
public void GetAnnotationEditExtensionByCLSID()
{
//You can get app from ICommand :: OnCreate() hook parameter
UID editorUid=new UIDClass();
editorUid.Value="esriEditor.Editor";
IEditor editor=app.FindExtensionByCLSID(editorUid) as IEditor;
UID extUid=new UIDClass();
extUid.Value="esriEditor.AnnotationEditExtension";
IAnnotationEditExtension annoExt=editor.FindExtension(extUid) as IAnnotationEditExtension;
}
Use the code below to get a reference to the AnnotationEditExtension in VBNet.
Public Sub GetAnnotationEditExtensionByCLSID()
'You can get app from ICommand :: OnCreate() hook parameter
Dim editorUid As UID=New UIDClass()
editorUid.Value="esriEditor.Editor"
Dim editor As IEditor=TryCast(app.FindExtensionByCLSID(editorUid), IEditor)
Dim extUid As UID=New UIDClass()
extUid.Value="esriEditor.AnnotationEditExtension"
Dim annoExt As IAnnotationEditExtension=TryCast(editor.FindExtension(extUid), IAnnotationEditExtension)
End Sub