System.Web.UI.HtmlControls.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.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.CssStyleCollection Style { get; }

Value

a System.Web.UI.CssStyleCollection

Remarks

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.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0