internal void RecordGroupModelBeforeUngroup(AnnotationModel annotation) { using (undoRecorder.BeginActionGroup()) // Start a new action group. { undoRecorder.RecordModificationForUndo(annotation); } }