This method clears all recorded operations from both the undo and redo stacks. It is useful when the state of the document changes in such a way that previous operations are no longer relevant or applicable. After clearing the history, the Changed event is raised to notify subscribers that the undo/redo history has been reset. Additionally, if any subscribers are registered to the Reset event, it is also raised to signal a complete reset of the undo/redo system.