예제 #1
0
 public override void InvokeUndo(ITextFlowEditSession editSess)
 {
     editSess.CurrentLineNumber = _startLineNumber;
     editSess.TryMoveCaretTo(_startCharIndex);
     editSess.StartSelect();
     editSess.CurrentLineNumber = EndLineNumber;
     editSess.TryMoveCaretTo(_endCharIndex);
     editSess.EndSelect();
 }
예제 #2
0
 public override void InvokeRedo(ITextFlowEditSession editSess)
 {
     editSess.CurrentLineNumber = _startLineNumber;
     editSess.TryMoveCaretTo(_startCharIndex);
     if (_singleInsertTextRun != null)
     {
         editSess.AddTextRunToCurrentLine(_singleInsertTextRun);
     }
     else
     {
         editSess.AddTextRunsToCurrentLine(_insertingTextRuns);
     }
 }
예제 #3
0
 public override void InvokeRedo(ITextFlowEditSession editSess)
 {
     editSess.CurrentLineNumber = _startLineNumber;
     editSess.TryMoveCaretTo(_startCharIndex);
     editSess.AddCharToCurrentLine(_c);
 }
예제 #4
0
 public override void InvokeUndo(ITextFlowEditSession editSess)
 {
     editSess.CurrentLineNumber = _startLineNumber;
     editSess.TryMoveCaretTo(_startCharIndex);
     editSess.DoBackspace();
 }
예제 #5
0
 public override void InvokeUndo(ITextFlowEditSession editSess)
 {
     editSess.CurrentLineNumber = _startLineNumber;
     editSess.TryMoveCaretTo(_startCharIndex);
     editSess.SplitCurrentLineIntoNewLine();
 }