public UndoGroup (Document doc) { if (doc == null) throw new ArgumentNullException ("doc"); this.doc = doc; doc.BeginAtomicUndo (); }