IEngineEditor.StopEditing Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

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 (Code Files: EditorForm)