This project is read-only.

Selecting text fragment

Apr 24, 2008 at 12:34 PM
I'm trying to select a text fragment in such way that the caret would be situated in the beginning of the selected fragment, but range.Select() puts it to the end of selection. And using methods like range.GoToStart() or setting scintillaControl1.CurrentPos to the beginning of selected fragment clears the selection.

In old Scintilla control I used
scintillaControl1.SetSelection(start, end);
which put the caret to end position be it greater than start or not, but now this option disappeared.

Could anyone please give me a hint how to this in 2.0 version?
Thanks a lot.