System.Web.UI.WebControls.BorderStyle Enumeration

Specifies the border style of a control.

Syntax

public enum BorderStyle

Remarks

The System.Web.UI.WebControls.BorderStyle enumeration represents the different border style options for a control.

The width of the border is controlled by using the WebControl.BorderWidth property of the System.Web.UI.WebControls.WebControl class.

Note:

When using the BorderStyle.Double style, the border width you specify must be at least 3 pixels wide to accommodate both lines and the space in between.

Members

Member NameDescription
Dashed

A dashed line border.

Dotted

A dotted line border.

Double

A double solid line border.

Groove

A grooved border for a sunken border appearance.

Inset

An inset border for a sunken control appearance.

None

No border.

NotSet

No set border style.

Outset

An outset border for a raised control appearance.

Ridge

A ridged border for a raised border appearance.

Solid

A solid line border.

Requirements

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