Version

UIElementBorderStyle Enumeration

Returns or sets a value that determines the border style of an object.
Syntax
'Declaration
 
Public Enum UIElementBorderStyle 
   Inherits System.Enum
public enum UIElementBorderStyle : System.Enum 
Members
MemberDescription
DashedDashed line
DefaultThe default border style
DottedDotted line
EtchedA 2 pixel wide etched line
InsetA 2 pixel wide inset border
InsetSoftA 1 pixel wide inset border
NoneNo borders
RaisedA 2 pixel wide raised border
RaisedSoftA 1 pixel wide raised border
Rounded1A 1 pixel wide rounded border with a rounding radius of 1.
Rounded1EtchedA 2 pixel wide etched rounded border with a rounding radius of 1.
Rounded3A 1 pixel wide rounded border with a rounding radius of 3.
Rounded4A 1 pixel wide rounded border with a rounding radius of 4.
Rounded4ThickA 2 pixel wide rounded border with a rounding radius of 4.
SolidA solid line
TwoColorA 2 pixel wide line with two different colors
WindowsVistaA 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.
Remarks

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.

Requirements

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

See Also