I want to prevent the user from starting an edit session under certain conditions.

How can I do that?

void m_editEvents_OnStartEditing()

            // Code

m_editor.StopEditing(false) will stop the edit session.

  • false to not save the changes
  • true if you want to save the changes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.