I'm having some trouble getting control of the WPF richtextbox control.
What I want to is as follows :
I have a RichTextBox control called richTextBox1 that I filled up with data from a database.
I need to get the text on a single line (meaning – a single paragraph) when I click the control.
All I found over the net is a code to copy ALL the RTB text.
Any ideas how to get just the text in the line that was clicked ?
Best Answer
I made serious web digging and here is a working solution.
(thanks to Justin-Josef with his post : http://blogs.microsoft.co.il/blogs/justinangel/archive/2008/01/29/tapuz-net-getting-wpf-s-flowdocument-and-flowdoucmentreader-mouseover-text.aspx )