This documentation is archived and is not being maintained.

BorderStyle Enumeration

Specifies the border style of a control.

[Visual Basic]
<Serializable>
Public Enum BorderStyle
[C#]
[Serializable]
public enum BorderStyle
[C++]
[Serializable]
__value public enum BorderStyle
[JScript]
public
   Serializable
enum BorderStyle

Remarks

The BorderStyle enumeration represents the different border style options for a control.

The width of the border is controlled by using the BorderWidth property of the WebControl class.

Note   When using the 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 name Description
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

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

System.Web.UI.WebControls Namespace | WebControl | WebControl.BorderWidth | DropDownList | DropDownList.BorderWidth | ListBox | ListBox.BorderWidth | Style | Style.BorderWidth

Show: