How can I get all the visual attributes of a text in a HtmlElement inside a WebBrowser?
I just need exactly those visual attributes (font, size, color, etc.) that the WebBrowser itself use to render the text. They have to be somewher开发者_如何转开发e otherwise the WebBrowser wouldn't know how to show the text.
Take a look at HtmlElement.Style - it's a list of CSS styles. You can get HtmlElements from the HtmlDocument (e.g. document.Links gives you all the links). Also, you should only get the HtmlDocument once the browser.DocumentCompleted event fires.
精彩评论