public UndoBlockCollection EndUndoCapture() { captureMode = false; AddToUndoList(captureBlock); return captureBlock; }