23.2.1 Border class

The static Border class provides constants that are used to define the border property of many controls, provided they have a Border property:

BorderConstantDescription
.None0No border is drawn
.Plain1A simple border line is drawn
.Sunken2A border line with a small shadow effect is drawn
.Raised3Draw a slightly raised border line
.Etched4A deepened border line is drawn

Table 23.2.1: Border properties

Some controls have a Border property that only allows you to specify whether a border is drawn or not. For others, the border property can be used to define the style of the border in 5 variants. If a border is set, you can specify whether the border is fixed or can be changed at runtime.

Examples: