| |||||
CssStyleCollection ClassContains the HTML cascading-style sheets ( CSS ) inline style attributes for a specified HTML server control. This class cannot be inherited.
RemarksAny style declared for a particular HTML server control is added to the collection when the containing Web Forms page is parsed. It automatically parses and exposes CSS properties through a dictionary pattern API. You can manipulate any CSS property on a server control through the Style property. Simply use the CSS property's key and value in the indexed collection. ExampleThe following example demonstrates iterating through an HTML server control's CSSStyleCollection object and rendering all the keys and their values to a Web Forms page. See AlsoASP.NET Server Controls and CSS Styles Style |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme