AccessibilitySettings AccessibilitySettings AccessibilitySettings AccessibilitySettings Class

Provides access to the high contrast accessibility settings.

Syntax

Declaration

public sealed class AccessibilitySettingspublic sealed class AccessibilitySettingsPublic NotInheritable Class AccessibilitySettings

Constructors summary

Initializes a new AccessibilitySettings object.

Properties summary

Gets a value that indicates whether the system high contrast feature is on or off.

Gets the name of the default high contrast color scheme.

Events summary

Occurs when the system high contrast feature turns on or off.

Constructors

  • AccessibilitySettings()
    AccessibilitySettings()
    AccessibilitySettings()
    AccessibilitySettings()

    Initializes a new AccessibilitySettings object.

    public AccessibilitySettings()public AccessibilitySettings()Public Function AccessibilitySettings() As

Properties

  • HighContrast
    HighContrast
    HighContrast
    HighContrast

    Gets a value that indicates whether the system high contrast feature is on or off.

    public bool HighContrast { get; }public bool HighContrast { get; }Public ReadOnly Property HighContrast As bool

    Property Value

    • bool
      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 string HighContrastScheme { get; }public string HighContrastScheme { get; }Public ReadOnly Property HighContrastScheme As string

    Property Value

    • 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 HighContrastChangedpublic event TypedEventHandler HighContrastChangedPublic Event HighContrastChanged

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ActivatableAttribute

Details

Assembly

Windows.UI.ViewManagement.dll