This document is archived and information here might be outdated. Recommended version. |
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
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.