This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.StopEditing Method (ArcObjects .NET 10.4 SDK) |
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 VARIANT_BOOL
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.