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

Descreve as propriedades das legendas ocultas.

## Sintaxe

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

### Membros

*BackgroundColor*\
Tipo: XColor

A cor da tela de fundo das legendas ocultas.

*FontColor*\
Tipo: XColor

A cor da fonte do texto das legendas ocultas.

*WindowColor*\
Tipo: XColor

A cor da janela das legendas ocultas.

*FontEdgeAttribute*\
Tipo: [XClosedCaptionFontEdgeAttribute](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute)

O atributo de borda da fonte do texto das legendas ocultas.

*FontStyle*\
Tipo: [XClosedCaptionFontStyle](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontstyle)

O estilo da fonte do texto das legendas ocultas.

*FontScale*\
Tipo: float

A escala da fonte do texto das legendas ocultas.

*Enabled*\
Tipo: bool

True se as legendas ocultas estiverem habilitadas; caso contrário, false.

## Comentários

Para recuperar as propriedades atuais das legendas ocultas, chame a função [XClosedCaptionGetProperties](/pt-BR/reference/system/xaccessibility/functions/xclosedcaptiongetproperties).
A função [XClosedCaptionGetProperties](/pt-BR/reference/system/xaccessibility/functions/xclosedcaptiongetproperties) usa um ponteiro para uma estrutura **XClosedCaptionProperties** como argumento.

O exemplo a seguir demonstra como recuperar as propriedades das legendas ocultas.

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

## Requisitos

**Cabeçalho:** XAccessibility.h

**Plataformas com suporte:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XAccessibility](/pt-BR/reference/system/xaccessibility/xaccessibility_members)

[XClosedCaptionFontEdgeAttribute](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute)

[XClosedCaptionFontStyle](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontstyle)

[XClosedCaptionGetProperties](/pt-BR/reference/system/xaccessibility/functions/xclosedcaptiongetproperties)


## Related topics

- [XClosedCaptionGetProperties](/pt-BR/reference/system/xaccessibility/functions/xclosedcaptiongetproperties.md)
- [XClosedCaptionFontStyle](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [XClosedCaptionFontEdgeAttribute](/pt-BR/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionSetEnabled](/pt-BR/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
- [XColor](/pt-BR/reference/system/xgameruntimetypes/structs/xcolor.md)
