Style.BorderStyle Property
Assembly: System.Web (in system.web.dll)
public: property BorderStyle BorderStyle { BorderStyle get (); void set (BorderStyle value); }
/** @property */ public BorderStyle get_BorderStyle () /** @property */ public void set_BorderStyle (BorderStyle value)
public function get BorderStyle () : BorderStyle public function set BorderStyle (value : BorderStyle)
Property Value
One of the BorderStyle enumeration values. The default is NotSet.Use the BorderStyle property to specify the border style for the Web server control. This property is set using one of the BorderStyle enumeration values. The following table lists the possible values.
| Border Style | Description |
|---|---|
| NotSet | The border style is not set. |
| None | No border |
| Dotted | A dotted line border. |
| Dashed | A dashed line border. |
| Solid | A solid line border. |
| Double | A solid double line border. |
| Groove | A grooved border for a sunken border appearance. |
| Ridge | A ridged border for a raised border appearance. |
| Inset | An inset border for a sunken control appearance. |
| Outset | An outset border for a raised control appearance. |
Note |
|---|
| This property will not render on some downlevel browsers. |
This example demonstrates how to use a Style object to change the style properties of multiple controls at once. Each time one of the Style property values changes, each control must call its ApplyStyle method. Note that not all the controls included support all the properties demonstrated. If a control does not support a particular property, the appearance of the control will not change when the property value is changed.
Note |
|---|
| The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Page Code Model. |
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.
Note