public void SetSelectLines (int from, int to) { MainSelection = new Selection (document.OffsetToLocation (Document.GetLine (from).Offset), document.OffsetToLocation (Document.GetLine (to).EndOffsetIncludingDelimiter)); }