Exemplo n.º 1
0
 public override void InvokeRedo(InternalTextLayerController textLayer)
 {
     textLayer.CurrentLineNumber = _startLineNumber;
     textLayer.TryMoveCaretTo(_startCharIndex);
     if (_singleInsertTextRun != null)
     {
         textLayer.AddTextRunToCurrentLine(_singleInsertTextRun);
     }
     else
     {
         textLayer.AddTextRunsToCurrentLine(_insertingTextRuns);
     }
 }
Exemplo n.º 2
0
 public override void InvokeUndo(InternalTextLayerController textLayer)
 {
     textLayer.CancelSelect();
     textLayer.AddTextRunsToCurrentLine(_deletedTextRuns);
 }