The static Border class provides constants that are used to define the border property of many controls, provided they have a Border property:
Border | Constant | Description |
---|---|---|
.None | 0 | No border is drawn |
.Plain | 1 | A simple border line is drawn |
.Sunken | 2 | A border line with a small shadow effect is drawn |
.Raised | 3 | Draw a slightly raised border line |
.Etched | 4 | A 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: