> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XHighContrastMode

> XHighContrastMode

# XHighContrastMode

指定隐藏式字幕文本的高对比度模式样式。

## 语法

```cpp theme={null}
enum class XHighContrastMode  : uint32_t  
{  
    Off = 0,  
    Dark = 1,  
    Light = 2,  
    Other = 3,  
}  
```

## 常量

| 常量    | 说明                  |
| ----- | ------------------- |
| Off   | 隐藏式字幕文本不使用高对比度模式。   |
| Dark  | 隐藏式字幕文本使用深色高对比度模式。  |
| Light | 隐藏式字幕文本使用浅色高对比度模式。  |
| Other | 隐藏式字幕文本使用自定义高对比度模式。 |

## 备注

您可以通过调用 [XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode) 函数来检索当前的高对比度模式。
[XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode) 函数会返回一个 **XHighContrastMode** 枚举。
有关高对比度模式的详细信息，请访问 [High-contrast mode](https://learn.microsoft.com/windows/win32/w8cookbook/high-contrast-mode)。

## 要求

**头文件：** XAccessibility.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XAccessibility](/reference/system/xaccessibility/xaccessibility_members)

[XHighContrastGetMode](/reference/system/xaccessibility/functions/xhighcontrastgetmode)

[High-contrast mode](https://learn.microsoft.com/windows/win32/w8cookbook/high-contrast-mode)


## Related topics

- [XHighContrastGetMode](/zh-CN/reference/system/xaccessibility/functions/xhighcontrastgetmode.md)
- [GDK 无障碍概览](/zh-CN/build/game-principles/accessibility/accessibility-overview.md)
- [XAccessibility](/zh-CN/reference/system/xaccessibility/xaccessibility_members.md)
- [XAG 102：对比度](/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-102-contrast.md)
- [XAG 101：文本显示](/zh-CN/build/game-principles/accessibility/xag-deep-dives/xag-101-text-display.md)
