BorderStyle Enumeration
.NET Framework 2.0
Specifies the border style of a control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
| 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. |
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. |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show:
Note