Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

New Post: Select text programmatically

$
0
0
Hi,

I've recently discovered HtmlRender and have a quick question.

Specifically I'm using HtmlPanel in a WinForms application. For my use case, I want to have a button on the form that automatically copies the text displayed in the HtmlPanel to the clipboard.

Is there a way I can achieve that?

I've looked at the control and can see there is a ClearSelection method, but I couldn't find any equivalent method for setting the selection. Nor could I find a method for copying to the clipboard.

Am I missing something?

If not is it possible to add that kind of functionality? Either a SetSelection or SelectAll method, as well as a CopySelection method. Or maybe even a simple CopyToClipboard method to automatically copy all of the text.

Peter

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>