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

IEngineEditor.StopEditing Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.StopEditing Method
ArcGIS Developer Help

IEngineEditor.StopEditing Method

Stops an edit session.

[Visual Basic .NET]
Public Sub StopEditing ( _
    ByVal saveChanges As Boolean _
public void StopEditing (
    bool saveChanges
HRESULT StopEditing(
  VARIANT_BOOL saveChanges
saveChanges [in]

saveChanges is a parameter of type bool

Product Availability

Available with ArcGIS Engine.


Stops an editing session. Changes can be saved by setting the saveChanges parameter to be True or discarded by setting the parameter to be False. 

StopEditing also clears all snap agents and unselects all selected features.


This method fires the IEngineEditEvents::OnBeforeStopEditing, IEngineEditEvents::OnStopEditing and IEngineEditEvents::OnTargetLayerChanged events.

See Also

IEngineEditor Interface

.NET Samples

Editing using a custom form