title: Trying to Inject CSS Code
body: <p>I get a error saying  </p>
  
  <blockquote>
    <p>for each statement cannot operate on variable of type 'mshtml.IHTMLElement' because 'mshtml.Element' does not contain a public definition of 'GetEnumerator'`</p>
  </blockquote>
  
  <pre><code>Var document = BookDocBrowser.Document as mshtml.Document
  
  //BookDocBrowser is a WebBrowser control 
  Var collection = document.getElementById("text");
  
  
  
  
  Foreach (IHTMLElement input collection) 
  
  //collection is underlined in red here when I start the //foreach loop
  {   
  
      dynamic currentStyle = (input as IHTMLElement2);
      input.style.setAttribute(" wordwrap","break-word");
  }
  </code></pre>
  
  <p>What I'm trying to do is inject CSS code into the HTML page that has been loaded on the WebBrowser Control</p>