Hello and, first of all, DevExpress is awesome. It's really made my job easier. Now on to my question.
I am converting a text editor I'd built a while back and using the XtraRichEdit component. The text editor allows users to select a point in the document and create a chapter that scrolls to that point. To set the chapter point I use Units.PixelsToDocuments and GetPositionFromPoint. With the old version of my editor (which use the basic WinForms rich text editor) I just set the caret position to the point and used the scrollToCaret() to send the user to the entry.
I've been fiddling around with the .Document.CaretPosition but haven't found a way of actually setting the caretposition (which is an integer). I get the error Can not convert type int to ....DocumentPosition. I'm sure that there's a way of doing it but I can't find it.
Any help would be much appreciated.
Thanks in advance to all who take the time to read and answer this post.
Dave