Defines the high contrast setting (off, on, or following the Windows setting).
Get
| C# | SftDateHighContrastConstants Mode = object.HighContrastMode; |
| VB.NET | Mode = object.HighContrastMode As SftDateHighContrastConstants |
| C++ | enum SftDateHighContrastConstants Mode = object->HighContrastMode; enum SftDateHighContrastConstants Mode = object->GetHighContrastMode(); |
| C | HRESULT object->get_HighContrastMode(enum SftDateHighContrastConstants* Mode); |
Put
| C# | SftDateHighContrastConstants object.HighContrastMode = Mode; |
| VB.NET | object.HighContrastMode = Mode As SftDateHighContrastConstants |
| C++ | enum SftDateHighContrastConstants object->HighContrastMode = Mode; void object->PutHighContrastMode(enum SftDateHighContrastConstants Mode); |
| C | HRESULT object->put_HighContrastMode(enum SftDateHighContrastConstants Mode); |
object
Mode
Defines the high contrast setting (off, on, or following the Windows setting).
| Name | Value | Description |
|---|---|---|
| highContrastSftDateOff | 0 | Off (ignore Windows high contrast) |
| highContrastSftDateOn | 1 | On (always use the system palette) |
| highContrastSftDateAuto | 2 | Automatic (follow Windows setting) |
The HighContrastMode property defines the high contrast setting of the control (off, on, or following the Windows setting). The default is highContrastSftDateOff. p While high contrast mode is active, the control ignores the colors defined by the application and dark mode, and uses the system colors of the contrast theme. Themes are not used. p When set to highContrastSftDateAuto, the control follows the Windows High Contrast accessibility setting and re-renders automatically; the HighContrastChange event is raised when the effective state changes. Use HighContrastActive to determine whether high contrast is currently active.
See Also SftDate Object | Object Hierarchy | High Contrast