Hi
I've tried using inspiration from a Silverlight question, but to no avail (http://www.telerik.com/community/forums/silverlight/richtextbox/get-hyperlink-from-selected-text.aspx)
What I'm trying to do is find any bookmarks within the current selection, or that surround the current caret position. I'd settle for just the last, but I'm struggling!
e.g, say I had a bookmark where the "[" and "]" are in the following sentence:
"The quick brown fox [jumped over] the lazy [dog]"
If the caret was anywhere within jumped over (either no text selected, or anywhere up to all of "jumped over" selected), I'd be able to get the bookmark name of the surrounding bookmark.
If I selected the whole sentence, I'd hope to get both bookmarks returned - but the first part is more important!
Thanks for any help.
Charlie
I've tried using inspiration from a Silverlight question, but to no avail (http://www.telerik.com/community/forums/silverlight/richtextbox/get-hyperlink-from-selected-text.aspx)
What I'm trying to do is find any bookmarks within the current selection, or that surround the current caret position. I'd settle for just the last, but I'm struggling!
e.g, say I had a bookmark where the "[" and "]" are in the following sentence:
"The quick brown fox [jumped over] the lazy [dog]"
If the caret was anywhere within jumped over (either no text selected, or anywhere up to all of "jumped over" selected), I'd be able to get the bookmark name of the surrounding bookmark.
If I selected the whole sentence, I'd hope to get both bookmarks returned - but the first part is more important!
Thanks for any help.
Charlie