'Declaration Public Enum UIElementBorderStyle Inherits System.Enum
public enum UIElementBorderStyle : System.Enum
Member | Description |
---|---|
Dashed | Dashed line |
Default | The default border style |
Dotted | Dotted line |
Etched | A 2 pixel wide etched line |
Inset | A 2 pixel wide inset border |
InsetSoft | A 1 pixel wide inset border |
None | No borders |
Raised | A 2 pixel wide raised border |
RaisedSoft | A 1 pixel wide raised border |
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. |
Rounded3 | A 1 pixel wide rounded border with a rounding radius of 3. |
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. |
Solid | A solid line |
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.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2