aspxtreme

Style Class

System.Web.UI.WebControls Namespace


Represents the style of a Web server control.

Style Class Members

Collapse   Constructors

Visibility Constructor Parameters
public Style ( )
public Style ( StateBag bag )

Collapse   Properties

Visibility Name Value Type Accessibility
public BackColor Color [ Get , Set ]
public BorderColor Color [ Get , Set ]
public BorderStyle BorderStyle [ Get , Set ]
public BorderWidth Unit [ Get , Set ]
public CssClass String [ Get , Set ]
public Font FontInfo [ Get ]
public ForeColor Color [ Get , Set ]
public Height Unit [ Get , Set ]
public IsEmpty Boolean [ Get ]
public RegisteredCssClass String [ Get ]
public Width Unit [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public AddAttributesToRender ( HtmlTextWriter writer , WebControl owner ) Void
public AddAttributesToRender ( HtmlTextWriter writer ) Void
public CopyFrom ( Style s ) Void
protected FillStyleAttributes ( CssStyleCollection attributes , IUrlResolutionService urlResolver ) Void
public GetStyleAttributes ( IUrlResolutionService urlResolver ) CssStyleCollection
public MergeWith ( Style s ) Void
public Reset ( ) Void
public SetDirty ( ) Void

Remarks

The Style class encapsulates the properties that control the appearance of a Web server control and can be applied to multiple Web server controls to provide a common appearance.

You can specify the background color and font color of a control by setting the BackColor and ForeColor properties, respectively. On controls that can display a border, you can control the border width, the border style, and the border color by setting the BorderWidth, BorderStyle, and BorderColor properties. The size of a Web server control can also be specified by using the Height and Width properties.

See Also

WebControl Class



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

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