Is there a way built into .NET to get info from a CSS programatically? For example, I want to get the background-color set for a particular entity in the CSS from my cs file string bgcolor = xxx.method(entityname, "background-color")
It is heavy, but works: Instantiate Web Browser control, construct simple HTML page that references your CSS file, load it into the browser and access styles programmatically via MSHTML DOM.
aciccarelli
Member
10 Points
2 Posts
parse through CSS file
Jul 31, 2003 06:24 PM|LINK
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: parse through CSS file
Aug 03, 2003 07:02 PM|LINK
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.