> ## 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.

# XClosedCaptionProperties

> XClosedCaptionProperties

# XClosedCaptionProperties

Describes the closed caption properties.

## Syntax

```cpp theme={null}
typedef struct XClosedCaptionProperties {  
    XColor BackgroundColor;  
    XColor FontColor;  
    XColor WindowColor;  
    XClosedCaptionFontEdgeAttribute FontEdgeAttribute;  
    XClosedCaptionFontStyle FontStyle;  
    float FontScale;  
    bool Enabled;  
} XClosedCaptionProperties  
```

### Members

*BackgroundColor*\
Type: XColor

The color of the closed caption background.

*FontColor*\
Type: XColor

The color of the closed caption text font.

*WindowColor*\
Type: XColor

The color of the closed caption window.

*FontEdgeAttribute*\
Type: [XClosedCaptionFontEdgeAttribute](/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute)

The font edge attribute of the closed caption text.

*FontStyle*\
Type: [XClosedCaptionFontStyle](/reference/system/xaccessibility/enums/xclosedcaptionfontstyle)

The font style of the closed caption text.

*FontScale*\
Type: float

The font scale of the closed caption text.

*Enabled*\
Type: bool

True if closed captioning is enabled, false otherwise.

## Remarks

To retrieve the current closed caption properties, call the [XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties) function.
The [XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties) function takes  a pointer to a **XClosedCaptionProperties** structure as an argument.

The following example demonstrates how to retrieve the closed caption properties.

```cpp theme={null}
XClosedCaptionProperties ccProperties;
if (SUCCEEDED(XClosedCaptionGetProperties(&ccProperties))
{
    // The game title can now access color and font settings in the ccProperties structure.
}
```

## Requirements

**Header:** XAccessibility.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

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

[XClosedCaptionFontEdgeAttribute](/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute)

[XClosedCaptionFontStyle](/reference/system/xaccessibility/enums/xclosedcaptionfontstyle)

[XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties)


## Related topics

- [XClosedCaptionFontStyle](/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)
- [XClosedCaptionFontEdgeAttribute](/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionSetEnabled](/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
- [XAccessibility](/reference/system/xaccessibility/xaccessibility_members.md)
