IEngineEditor.StartOperation Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditor.StartOperation Method

Starts an edit operation.

[Visual Basic .NET]
Public Sub StartOperation ( _
public void StartOperation (
HRESULT StartOperation(

Product Availability

Available with ArcGIS Engine.


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.

See Also

IEngineEditor Interface