BorderStyle BorderStyle BorderStyle BorderStyle Enum


Specifies the border style of a control.

public enum class BorderStyle
public enum BorderStyle
type BorderStyle = 
Public Enum BorderStyle


Dashed Dashed Dashed Dashed 3

A dashed line border.

Dotted Dotted Dotted Dotted 2

A dotted line border.

Double Double Double Double 5

A double solid line border.

Groove Groove Groove Groove 6

A grooved border for a sunken border appearance.

Inset Inset Inset Inset 8

An inset border for a sunken control appearance.

None None None None 1

No border.

NotSet NotSet NotSet NotSet 0

No set border style.

Outset Outset Outset Outset 9

An outset border for a raised control appearance.

Ridge Ridge Ridge Ridge 7

A ridged border for a raised border appearance.

Solid Solid Solid Solid 4

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.


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.

Applies to

See also