HtmlControl::Style Property
Gets a collection of all cascading style sheet (CSS) properties applied to a specified HTML server control in the ASP.NET file.
Assembly: System.Web (in System.Web.dll)
[BrowsableAttribute(false)] public: property CssStyleCollection^ Style { CssStyleCollection^ get (); }
Property Value
Type: System.Web.UI::CssStyleCollectionA System.Web.UI::CssStyleCollection object that contains the style properties for the HTML server control.
Use this property to programmatically access the style properties of the HTML server control.
For additional information on the CSS style collection, see the System.Web.UI::CssStyleCollection class.
The following code example demonstrates how to use the Style property to determine the style properties of an HtmlSelect control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.