S
SamSpade
In a RichTextBox's MouseMove, how can I find out if the cursor is over
selected text ?
selected text ?
Vijaye Rajji said: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.
HTH
=vJ
Justin Rogers said: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.