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

# XGameUiTextEntryGetExtents

> XGameUiTextEntryGetExtents

# XGameUiTextEntryGetExtents

仮想キーボードの画面上の範囲を取得し、呼び出し元がテキストを安全にレンダリングできる場所を
把握できるようにします。

## Syntax

```cpp theme={null}
HRESULT XGameUiTextEntryGetExtents(  
         XGameUiTextEntryHandle handle,
         XGameUiTextEntryExtents* extents
)  
```

### Parameters

*handle*   \_In\_\
型: XGameUiTextEntryHandle

現在開いている仮想キーボードへのハンドル。

*handle*   \_Out\_\
型: [XGameUiTextEntryExtents](https://docs.xbox.com/ja-jp/reference/system/xgameui/structs/xgameuitextentryextents.md)

仮想キーボードの画面上の範囲を記述します。

### Return value

型: HRESULT

HRESULT の成功またはエラー コード。エラー コードの一覧については、[Error Codes](https://docs.xbox.com/ja-jp/reference/errorcodes.md) を参照してください。

## Remarks

この関数は、フル キーボードが表示されている場合は常に大型のアクセシビリティ キーボードの範囲を返します。
それ以外の場合は、候補リストの範囲を返します。

## Requirements

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

**ライブラリ:** xgameruntime.lib

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

## See also

[XGameUI](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)


## Related topics

- [XGameUiTextEntryExtents](https://docs.xbox.com/ja-jp/reference/system/xgameui/structs/xgameuitextentryextents.md)
- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiTextEntryGetState](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuitextentrygetstate.md)
- [XGameUiShowTextEntryUiCallback](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowtextentryuicallback.md)
- [XGameUiSetTextEntryUiResponse](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuisettextentryuiresponse.md)
