We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Programmatically get Selected text

I see from Reflector that you're using an internal SelectionManager to Get and Set Selected Text....

It would be really nice if you could either expose that object, or at-least the "SelectAllText()" and "SelectedText" properties.

Short of doing so...
How do I get the "SelectedText" of the control?


1 Reply

AD Administrator Syncfusion Team March 19, 2008 07:28 PM UTC

Hi,

Please try the below code to get the selected text in the HTMLUI control.

[C#]
this.textBox1.Text = this.htmluiControl1.SelectedText.ToString();


Thank you for your interest in Syncfusion Essential Studio.

Regards,
Nanda


Loader.
Live Chat Icon For mobile
Up arrow icon