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

# XblPreferredColor

> XblPreferredColor

# XblPreferredColor

使用者的慣用色彩。透過殼層設定。

## 語法

```cpp theme={null}
typedef struct XblPreferredColor {  
    char primaryColor[XBL_COLOR_CHAR_SIZE];  
    char secondaryColor[XBL_COLOR_CHAR_SIZE];  
    char tertiaryColor[XBL_COLOR_CHAR_SIZE];  
} XblPreferredColor  
```

### 成員

*primaryColor*\
類型：char\[XBL\_COLOR\_CHAR\_SIZE]

以 UTF-8 編碼的使用者主要色彩。

*secondaryColor*\
類型：char\[XBL\_COLOR\_CHAR\_SIZE]

以 UTF-8 編碼的使用者次要色彩。

*tertiaryColor*\
類型：char\[XBL\_COLOR\_CHAR\_SIZE]

以 UTF-8 編碼的使用者第三色彩。

## 隸屬於

[XblSocialManagerUser](/zh-TW/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser)

## 需求

**標頭：** social\_manager\_c.h

## 另請參閱

[social\_manager\_c](/zh-TW/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerUser](/zh-TW/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanageruser.md)
- [XblSocialManagerExtraDetailLevel](/zh-TW/reference/live/xsapi-c/social_manager_c/enums/xblsocialmanagerextradetaillevel.md)
- [XColor](/zh-TW/reference/system/xgameruntimetypes/structs/xcolor.md)
- [PIX_COLOR](/zh-TW/reference/tools/pix3/functions/pix_color.md)
- [PIX_COLOR_INDEX](/zh-TW/reference/tools/pix3/functions/pix_color_index.md)
