Is there a way to determine which paragraph in a document the mouse is over when the user right-clicks?
1 Answer, 1 is accepted
0
Accepted
Petya
Telerik team
answered on 25 Feb 2013, 02:28 PM
Hi John,
When right-clicking within a RadRichTextBox, the caret position is changed to the place where you clicked. So, you can obtain the paragraph using the CaretPosition. For example, here is how you can select it:
DocumentPosition start = new DocumentPosition(editor.Document);
DocumentPosition end = new DocumentPosition(editor.Document);