The Object Editor Extension.
Editor is a non-creatable object. References to non-creatable objects must be obtained through other objects.
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 |
|---|---|
| IActiveViewEvents (esriCarto) | Provides access to events that occur when the state of the active view changes. |
| IAttributeTransferType | Provides access to members that control the behavior of the attribute transfer interfaces. |
| IEditAnnotationProperties | Provides access to members that control the annotation properties of an edit session. |
| IEditLayers | Provides access to members that control information about layers in the edit session. |
| IEditor | Provides access to members that control the behavior of the editor. |
| IEditor2 | Provides access to methods that extend the IEditor interface. The additional members control the behavior of the auxiliary selection anchor. |
| IEditProperties | Provides access to members that control the properties of an edit session. |
| IEditProperties2 | Provides access to more members that control the properties of an edit session. |
| IEditSketch | Provides access to members that access and manipulate the edit sketch. |
| IEditSketch2 | Provides access to members that access and manipulate the edit sketch. |
| IEditTaskSearch | Provides access to members that find edit tasks by name. |
| IExtension (esriSystem) | Provides access to members that define an extension. |
| IExtensionAccelerators (esriSystem) | Provides access to a method that creates extension accelerators. |
| IExtensionManager (esriSystem) | Provides access to members that query extension. |
| IPersist | Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile. |
| IPersistStream (esriSystem) | |
| ISnapEnvironment | Provides access to members that manage the snap agents used by the editor. |
| ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
| Interfaces | Description |
|---|---|
| IEditEvents (default) | 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. |
| IEditEvents3 | Provides access to more editor events. Implement it to listen for specific events that occur during an edit session. |
The following VBA code examples shows both methods being used to acquire a reference of type IEditor to the Editor object.
Sub GetEditorExtensionByCLSID()
Dim pEditor As IEditor
Dim pID As New UID
pID = "esriEditor.Editor"
Set pEditor = Application.FindExtensionByCLSID(pID)
End Sub
Sub GetEditorExtensionByName()
Dim pEditor as IEditor
Set pEditor = Application.FindExtensionByName("ESRI Object Editor")
End Sub
When working with Editor's default outbound interface in Visual Basic 6 declare variables as follows: Private WithEvents pEditor as Editor
When implementing IEditEvents2 declare variables as follows:Private WithEvents pEditEvents2 as EditEvents2
When implementing IEditEvents3 declare variables as follows:Private WithEvents pEditEvents3 as EditEvents3
IWorkspaceEdit Interface | IWorkspaceEditEvents Interface | ISpatialCacheManager Interface | Editor Class | IFeatureClass.CreateFeature Method