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

クローズド キャプションのプロパティを記述します。

## 構文

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

### メンバー

*BackgroundColor*\
型: XColor

クローズド キャプションの背景色です。

*FontColor*\
型: XColor

クローズド キャプション テキスト フォントの色です。

*WindowColor*\
型: XColor

クローズド キャプション ウィンドウの色です。

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

クローズド キャプション テキストのフォント エッジ属性です。

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

クローズド キャプション テキストのフォント スタイルです。

*FontScale*\
型: float

クローズド キャプション テキストのフォント スケールです。

*Enabled*\
型: bool

クローズド キャプションが有効な場合は true、それ以外の場合は false です。

## 解説

現在のクローズド キャプション プロパティを取得するには、[XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties) 関数を呼び出します。
[XClosedCaptionGetProperties](/reference/system/xaccessibility/functions/xclosedcaptiongetproperties) 関数は、**XClosedCaptionProperties** 構造体へのポインターを引数として受け取ります。

次の例は、クローズド キャプション プロパティを取得する方法を示しています。

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

## 要件

**ヘッダー:** XAccessibility.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

[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

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