This document is archived and information here might be outdated. Recommended version. |
Aborts an edit operation.
[Visual Basic .NET]
Public Sub AbortOperation ( _
)
[C#]
public void AbortOperation (
);
[C++]
HRESULT AbortOperation(
void
);
AbortOperation should be used to terminate the edit operation without saving any changes. Those changes that were made after IEngineEditor::StartOperation was called are undone, and nothing is added to the operation stack.
You may wish to test that your edit operation is valid before saving any changes. If the test fails you should call AbortOperation instead of IEngineEditor::StopOperation.
This method fires theIEngineEditEvents::OnSelectionChanged and IEngineEditEvents::OnAbort events.