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


IEngineEditor.StopEditing Method (ArcObjects .NET 10.8 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 _
)
[C#]
public void StopEditing (
    bool saveChanges
);
[C++]
HRESULT StopEditing(
  VARIANT_BOOL saveChanges
);
[C++]
Parameters
saveChanges [in]

saveChanges is a parameter of type bool

Product Availability

Available with ArcGIS Engine.

Description

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.

Remarks

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

See Also

IEngineEditor Interface

.NET Samples

Editing using a custom form