FastColoredTextBoxNS.SelectCommand.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : UndoableCommand
return UndoableCommand
        public override UndoableCommand Clone()
        {
            var result = new SelectCommand(ts);
            if(lastSel!=null)
                result.lastSel = new RangeInfo(new Range(ts.CurrentTB, lastSel.Start, lastSel.End));
            return result;
        }