title: How to copy html text selection and assign it to a string in c#
body: <p>I have an .html file containing only text(formatted somehow).I am wondering if there is a way to copy all of the text(like if would do with ctrl+A) and assign it to a string So I can then export it to .txt file ? All this must happen from the code-behind(opening the html, selecting the text and assigning it to a string).</p>
  
  <p>In the <code>Microsoft.Office.Interop</code> I remember that there was an option for copying the active window selection or something, so I was wondering if this is possible and here.</p>