AccessibilitySettings AccessibilitySettings AccessibilitySettings AccessibilitySettings Class

Definition

Provides access to the high contrast accessibility settings.

public : sealed class AccessibilitySettings : IAccessibilitySettings
public sealed class AccessibilitySettings : IAccessibilitySettings
Public NotInheritable Class AccessibilitySettings Implements IAccessibilitySettings
var accessibilitySettings = new accessibilitySettings();
Attributes
Windows 10 requirements
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()
var accessibilitySettings = new accessibilitySettings();

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
var bool = accessibilitySettings.highContrast;
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
var string = accessibilitySettings.highContrastScheme;
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 TypedEventHandler HighContrastChanged( Of ( Of AccessibilitySettings ), ( Of object ))
function onHighContrastChanged(eventArgs){/* Your code */}


accessibilitySettings.addEventListener("highContrastChanged", onHighContrastChanged);
accessibilitySettings.removeEventListener("highContrastChanged", onHighContrastChanged);

See Also