How do we know programmatically that the selection done by the user is a single line selection and doesnt contain any combination. We want to know how will we identify if the user has selected table/images or plain text.
Kushagra
1 Answer, 1 is accepted
0
Missing User
answered on 19 Feb 2014, 06:05 PM
Hi Kushagra,
Thank you for contacting us!
If you are going to identify the elements in the user's selection, I would suggest you to create a new document from the selection. Then you should enumerate its table/image elements and determine whether they exist.
The following code-snippet demonstrates how this could be accomplished:
if (!this.radRichTextBox.Document.Selection.IsEmpty)
{
RadDocumentEditor documentEditor = new RadDocumentEditor(new RadDocument());