System.Web.UI.WebControls.WebControl.BorderWidth Property

Gets or sets the border width of the Web server control.

Syntax

[System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")]
public virtual Unit BorderWidth { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the WebControl.BorderWidth property to specify a border width for a control.

Note:

This property does not work with all Web server controls. It applies only to controls that display as a table, such as System.Web.UI.WebControls.Table and System.Web.UI.WebControls.DataGrid.

This property is set with a System.Web.UI.WebControls.Unit object. If the Unit.Value property of the System.Web.UI.WebControls.Unit contains a negative number, an exception is thrown.

Note:

The border width can be expressed only in pixels for browsers earlier than Microsoft Internet Explorer version 5. All unit types are supported in Microsoft Internet Explorer version 5 and later. Refer to the specific control for details.

Requirements

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