Let me explain a little further, in a RichTextbox - the .Selstart property is the place (in the document) either where the cursor is (which is one thing I need to know), and it also is the starting point (in the document) of the selected text.
I'm thinking this might be your StartOffset Property, but I'm not sure, because no where I can find in the documentation are any examples or even a definition of what you are calling an 'offset'. Also, it's only an integer, and I know from experience that some of my users have some long documents, so a 'long' would be a better choice, but, of course, I don't know what I'm looking for. Let me know which property it is, because after an hour of looking through
It's particularly painful, if you are trying to search for specific properties and the language is not straightforward. A case in point, is this, in the Remarks section of the StartOffset Property:
"The start offset may occur after the end offset if the selection is not normalized. The IsNormalized property indicates if the selection is normalized. To get the normalized first offset in the selection, use the FirstOffset property. To get the normalized last offset in the selection, use the LastOffset property. ". Maybe it's just me, but this is a bit circular and does not define anything.
One other thing I'm trying to find is how to programmatically select a particular length. Let's say I have the 'Selstart' (where the cursor is to start the selection. Then, I have a formula which defines the length I'd like to select, from that point.
I tried :
Editor.SelectedView.Selection.Length = Rbracket - lBracket - 10
Of course, it said 'Length' was read only - so how do I achieve something like this, also?
One good suggestion, would be to have samples of how the properties and methods are used, since there are so many.