예제 #1
0
        public void Execute()
        {
            IParagraph paragraph = _documentItem.Paragraph;

            _previousText = paragraph.GetText();
            paragraph.SetText(_newText);
        }
예제 #2
0
        public void Unexecute()
        {
            IParagraph paragraph = _documentItem.Paragraph;

            paragraph.SetText(_previousText);
        }