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

# 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](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)

The font edge attribute of the closed caption text.

*FontStyle*\
Type: [XClosedCaptionFontStyle](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)

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](https://docs.xbox.com/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md) function.
The [XClosedCaptionGetProperties](https://docs.xbox.com/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md) 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](https://docs.xbox.com/reference/system/xaccessibility/xaccessibility_members.md)

[XClosedCaptionFontEdgeAttribute](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)

[XClosedCaptionFontStyle](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)

[XClosedCaptionGetProperties](https://docs.xbox.com/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)


## Related topics

- [XClosedCaptionFontStyle](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [XClosedCaptionGetProperties](https://docs.xbox.com/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)
- [XClosedCaptionFontEdgeAttribute](https://docs.xbox.com/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionSetEnabled](https://docs.xbox.com/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
- [XAccessibility (API contents)](https://docs.xbox.com/reference/system/xaccessibility/xaccessibility_members.md)
