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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Programmatically get Selected text

Thread ID:

Created:

Updated:

Platform:

Replies:

72398 Mar 17,2008 03:11 PM UTC Mar 19,2008 07:28 PM UTC WinForms 1
loading
Tags: HTMLUIControl
ERobishaw
Asked On March 17, 2008 03:11 PM UTC

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?


Administrator [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;