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

# XGameUiTextEntryExtents

> XGameUiTextEntryExtents

# XGameUiTextEntryExtents

描述虚拟键盘的相对定位。

## 语法

```cpp theme={null}
struct XGameUiTextEntryExtents {  
    float left;  
    float top;
    float right;
    float bottom;
} 
```

### 成员

*left*
类型：float

虚拟键盘左侧的相对位置。该值介于 0.0f 到 1.0f 之间，表示屏幕的百分比。

*top*
类型：float

虚拟键盘顶部的相对位置。该值介于 0.0f 到 1.0f 之间，表示屏幕的百分比。

*right*
类型：float

虚拟键盘右侧的相对位置。该值介于 0.0f 到 1.0f 之间，表示屏幕的百分比。

*bottom*
类型：float

虚拟键盘底部的相对位置。该值介于 0.0f 到 1.0f 之间，表示屏幕的百分比。

## 要求

**标头：** XGameUI.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiTextEntryGetExtents](/reference/system/xgameui/functions/xgameuitextentrygetextents)


## Related topics

- [XGameUiTextEntryGetExtents](/zh-CN/reference/system/xgameui/functions/xgameuitextentrygetextents.md)
- [XGameUI](/zh-CN/reference/system/xgameui/xgameui_members.md)
- [XGameUiSetTextEntryUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
- [XGameUiShowTextEntryUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiTextEntryOptions](/zh-CN/reference/system/xgameui/structs/xgameuitextentryoptions.md)
