This document is archived and information here might be outdated. Recommended version. |
Starts an edit operation.
[Visual Basic .NET]
Public Sub StartOperation ( _
)
[C#]
public void StartOperation (
);
[C++]
HRESULT StartOperation(
void
);
StartOperation marks the beginning of an edit operation. To provide undo/redo capability programmatically all edits must be performed within an edit operation.
Calling IEngineEditor::StopOperation completes an edit operation which is then added to the top of the operation stack. The operation stack is how ArcGIS Engine implements Undo and Redo. When using StartOperation, proper error handling, including the use of IEgineEditor::AbortOperation, is neccessary.
Edit operations cannot be nested; calling StartOperation within another operation will raise an error.
This method fires the IEngineEditEvents::OnStartOperation event.