public override DoOrUndo GetClearTextAction() { string old = null; if (string.IsNullOrEmpty(Text)) return null; return @do => { if (@do) { old = Text; Text = null; } else { Text = old; } }; } }