In some cases the values of a property are restricted to the values of a particular enumeration, a category of predefined values. For example, the color property, which is used in UI technologies, accepts a value of the ColorKind enumeration. Valid values of that enumeration include white, red, and others.
You can qualify an enumeration value with the enumeration name, so the preceding values can be stated as ColorKind.white and ColorKind.red. However, you need to qualify the enumeration value only when your code has access to a variable or constant whose name is the same as the enumeration value. For example, if a variable named red is in scope, the symbol red refers to the variable rather than to the enumeration value.
The following list of core enumerations includes the enumeration values. The explanations of those values occur elsewhere, in the context of the property or field in which the enumeration is meaningful.
The majority of enumerations are used with UI technologies; see the related reference links at the end of this topic for information about enumerations available with any technologies that you might be using.