I don't think there's an exclusive method to do that. However, you can use
GetPositionFromCharIndex(...) and pass in character indices from
SelectionStart to SelectionStart + SelectionLength.
I don't think there's an exclusive method to do that. However, you can use
GetPositionFromCharIndex(...) and pass in character indices from
SelectionStart to SelectionStart + SelectionLength.
GetCharIndexFromPosition would be a single call, instead of multiple calls for
the
selection range and get you the same information. If your char index was
between
SelectStart and SelectionStart.SelectionLength, then you'd be fine.
GetCharIndexFromPosition would be a single call, instead of multiple calls for
the
selection range and get you the same information. If your char index was
between
SelectStart and SelectionStart.SelectionLength, then you'd be fine.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.