AccessibilitySettings
AccessibilitySettings
AccessibilitySettings
AccessibilitySettings
Class
Definition
Provides access to the high contrast accessibility settings.
public : sealed class AccessibilitySettings : IAccessibilitySettingspublic sealed class AccessibilitySettings : IAccessibilitySettingsPublic NotInheritable Class AccessibilitySettings Implements IAccessibilitySettings// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
AccessibilitySettings() AccessibilitySettings() AccessibilitySettings() AccessibilitySettings()
Initializes a new AccessibilitySettings object.
public : AccessibilitySettings()public AccessibilitySettings()Public Sub New()// You can use this method in JavaScript.
Properties
HighContrast HighContrast HighContrast HighContrast
Gets a value that indicates whether the system high contrast feature is on or off.
public : PlatForm::Boolean HighContrast { get; }public bool HighContrast { get; }Public ReadOnly Property HighContrast As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the high contrast feature is on; otherwise false.
Remarks
This property indicates whether the user wants a high contrast between the colors used for foreground and background visuals. The user controls the setting of the high contrast parameter by using the Ease of Access Center in Control Panel, or another application for customizing the environment.
HighContrastScheme HighContrastScheme HighContrastScheme HighContrastScheme
Gets the name of the default high contrast color scheme.
public : PlatForm::String HighContrastScheme { get; }public string HighContrastScheme { get; }Public ReadOnly Property HighContrastScheme As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The name of the default high contrast color scheme.
Remarks
Windows uses the colors defined in the default color scheme to draw UI elements when the high contrast feature is on.
Events
HighContrastChanged HighContrastChanged HighContrastChanged HighContrastChanged
Occurs when the system high contrast feature turns on or off.
public : event TypedEventHandler HighContrastChanged<AccessibilitySettings, object>public event TypedEventHandler HighContrastChanged<AccessibilitySettings, object>Public Event HighContrastChanged<AccessibilitySettings, object>// You can use this event in JavaScript.