This document is archived and information here might be outdated.  Recommended version.


IEditor.StopOperation Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditor.StopOperation Method

Stops an edit operation.

[Visual Basic .NET]
Public Sub StopOperation ( _
    ByVal menuText As String _
)
[C#]
public void StopOperation (
    string menuText
);

Product Availability

Available with ArcGIS Desktop.

Remarks

StartOperation and StopOperation mark the beginning and end of an edit operation. Edit operations provide undo/redo capabilites for any action or set of actions (additions, deletions, or modifications) taken on features.
Calling StopOperation creates an edit operation that is added to the top of the operation stack. The operation stack is how ArcMap implements Undo and Redo. When using StopOperation, proper handling of errors, including the use of AbortOperation, is neccessary.

All edits to features that participate in a Topology or Geometric Network must be bracketed within an edit operation.

See Also

IEditor Interface | IEditor.StartOperation Method

.NET Snippets

Flip Line Direction

.NET Samples

Curve conversion add-in (Code Files: CurveConversionDockWin) | Points along line construction tool (Code Files: PointsAlongLineForm) | ViperPin tool (Code Files: ViperPinForm)

.NET Related Topics

Managing edit sessions and edit operations