Assuming you are using
System.Windows.Forms.HtmlDocument, here's what you need to do:
- Once you have a valid HTML loaded in the document, get a reference to its
DomDocument object (this is an unmanaged pointer to an
MSHTML.IHTMLDocument2 interface);
- Use the DomDocument reference to gain access to the document's stylesheets collection with MSHTML.IHTMLDocument2.styleSheet (
http://msdn.microsoft.com/en-us/library/aa752607(VS.85).aspx)
You can find relevant code samples in the links mentioned before.
Regards and Happy Holidays!
-- Don't forget to close the thread by marking the correct post(s) as ANSWERED!