| Visual Basic (Declaration) | |
|---|---|
Public Enum UIElementBorderStyle Inherits Enum | |
| C# | |
|---|---|
public enum UIElementBorderStyle : Enum | |
| Member | Description |
|---|---|
| Default | The default border style |
| None | No borders |
| Dotted | Dotted line |
| Dashed | Dashed line |
| Solid | A solid line |
| Inset | A 2 pixel wide inset border |
| Raised | A 2 pixel wide raised border |
| InsetSoft | A 1 pixel wide inset border |
| RaisedSoft | A 1 pixel wide raised border |
| Etched | A 2 pixel wide etched line |
| Rounded1 | A 1 pixel wide rounded border with a rounding radius of 1. |
| Rounded1Etched | A 2 pixel wide etched rounded border with a rounding radius of 1. |
| Rounded4 | A 1 pixel wide rounded border with a rounding radius of 4. |
| Rounded4Thick | A 2 pixel wide rounded border with a rounding radius of 4. |
| TwoColor | A 2 pixel wide line with two different colors |
| WindowsVista | A Windows Vista style border. BorderColor is used as the top border, and the other three borders sides are drawn with varying (ligher) shades of the BorderColor. |
The border style of cells, rows, and headers can be set by the BorderStyleCell, BorderStyleRow, and BorderStyleHeader properties respectively.
The border style of the AddNew box buttons can be set by the ButtonBorderStyle property.
Note that not all styles are available on all operating systems. If the version of the OS that your program is running on does not support a particular border style, borders formatted with that style will be drawn using solid lines.
