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.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog:
http://weblogs.asp.net/justin_rogers
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
Perfect
thanks
"Vijaye Rajji" <no*************@hotmail.com> wrote in message
news:On*************@TK2MSFTNGP10.phx.gbl... 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
" SamSpade" <st**************@REMOVEaol.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... In a RichTextBox's MouseMove, how can I find out if the cursor is over
selected text ?