An editor extension for creating and editing annotation features.
Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.
| Interfaces | Description |
|---|---|
| IAnnotationEditExtension | Provides access to members that control annotation feature editing. |
| IEditEvents | Provides access to editor events. Implement it to listen for specific events that occur during an edit session. |
| IEditEvents2 | Provides access to more editor events. Implement it to listen for specific events that occur during an edit session. |
| IEditSketchExtension | Provides access to members that extend the edit sketch. |
| IEditSketchExtension2 | Provides access to members that extend the edit sketch. |
| IExtension (esriSystem) | Provides access to members that define an extension. |
| ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
The AnnotationEditExtension is an editor extension to manage and create Geodatabase annotation features. The primary interface IAnnotationEditExtension can be accessed using IEditor::FindExtension and the CLSID for "esriEditor.AnnotationEditExtension".
The following VBA code examples illustrates how to acquire a reference of type IAnnotationEditExtension to the AnnotationEditExtension object.
Sub GetAnnotationEditExtension()
Dim pEditor As IEditor
Dim pID As New UID
Dim pAnnoExt As IAnnotationEditExtension
Dim pAnnoID As New UID
pID = "esriEditor.Editor"
Set pEditor = Application.FindExtensionByCLSID(pID)
pAnnoID = "esriEditor.AnnotationEditExtension"
Set pAnnoExt = pEditor.FindExtension(pAnnoID)
End Sub