ArcObjects Library Reference (Editor)  

IAnnotationEditExtension Interface

Provides access to members that control annotation feature editing.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Read-only property AnnotationConstructors The annotation constructors for creating new annotations.
Read-only property ConstructionSymbol The symbol to be used for newly created annotation features.
Read/write property ConstructionSymbolID The symbol id of newly created annotation features.
Read/write property ConstructionText The current text that will be used to construct the annotation.
Read/write property CurrentConstructor The currently selected annotation constructor.
Read-only property IsAnnotationTarget Indicates if an annotation feature class is the current editor target.
Read/write property LinkedFeatureID The linked feature id for the newly created annotation feature.

CoClasses that implement IAnnotationEditExtension

CoClasses and Classes Description
AnnotationEditExtension An editor extension for creating and editing annotation features.

Remarks

Use IEditor::FindExtension to access the AnnotationEditExtension and its interfaces.

[C#]

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;
}
[Visual Basic .NET]

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