Clone() public abstract method

public abstract Clone ( ) : UndoableCommand
return UndoableCommand
コード例 #1
0
 private void ExecuteCommand(ref int iChar)
 {
     foreach (var r in range.GetSubRanges(false))
     {
         ts.CurrentTB.Selection = r;
         var c = cmd.Clone();
         c.Execute();
         if (ts.CurrentTB.Selection.End.iChar > iChar)
         {
             iChar = ts.CurrentTB.Selection.End.iChar;
         }
         commandsByRanges.Add(c);
     }
 }
コード例 #2
0
 private void ExecuteCommand(ref int iChar)
 {
     foreach (var r in _range.GetSubRanges(false))
     {
         Ts.CurrentTb.Selection = r;
         var c = _cmd.Clone();
         c.Execute();
         if (Ts.CurrentTb.Selection.End.IChar > iChar)
         {
             iChar = Ts.CurrentTb.Selection.End.IChar;
         }
         _commandsByRanges.Add(c);
     }
 }