public override bool TransposeLine() { if (TextView.Selection.IsEmpty) { TextPoint caretPoint = CaretPoint; double oldLeft = AdvancedCaret.Left; if (!caretPoint.TransposeLine()) { return(false); } AdvancedCaret.MoveTo(caretPoint.AdvancedTextPoint, PositionAffinity.Successor, false); AdvancedCaret.EnsureVisible(); ITextViewLine newLine = AdvancedTextViewLine; AdvancedCaret.MoveTo(newLine, oldLeft); AdvancedCaret.EnsureVisible(); } return(true); }
public override bool TransposeLine() { return(_bufferPoint.TransposeLine()); }