BorderStyle Enumeration
TOC
Collapse the table of content
Expand the table of content

BorderStyle Enumeration

 

Specifies the border style of a control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum BorderStyle

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.

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.

System_CAPS_noteNote

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft