This document is archived and information here might be outdated. Recommended version. |
Indicates if edits have been made.
[Visual Basic .NET]
Public Function HasEdits ( _
) As Boolean
[C#]
public bool HasEdits (
);
[C++]
HRESULT HasEdits(
void
);
This property reports whether or not any edits have been made in the current edit session. For example, if this property returns False then editing can be stopped without saving the changes by calling IEngineEditor::StopEditing with the False parameter.
if
(m_EngineEditor.HasEdits() ==false
) m_EngineEditor.StopEditing(false
);else
{//Code to prompt for Save Changes (Yes/No)
}
If
(m_EngineEditor.HasEdits() =False
)Then
m_EngineEditor.StopEditing(False
)Else
'Code to prompt for Save Changes (Yes/No)
End
If