title: How do I get web browser element's css style?
body: <p>I have a page like the below in my web browser that I want to get the <code>style</code> atributte value. I tried:</p>
  
  <pre><code> HtmlElement ele = webBrowser1.Document.GetElementById("foo");
              MessageBox.Show(ele.GetAttribute("style"));
  </code></pre>
  
  <p>but it output:</p>
  
  <pre><code>System.__ComObject
  </code></pre>
  
  <p>Why does it output a <code>System.__ComObject</code> type and how do I handle it?</p>
  
  <p><strong>HTML page:</strong></p>
  
  <pre><code>&lt;div id="foo" style="display:block;"&gt;
  a
  &lt;/div&gt;
  </code></pre>