EditContext: updateSelectionBounds() メソッド
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
EditContext
インターフェイスの EditContext.updateSelectionBounds()
メソッドは、オペレーティングシステムに EditContext
オブジェクトに関連付けられた編集可能な領域内で選択されているテキストの領域の情報を知らせます。
オペレーティングシステムに現在のユーザーの選択の境界を知らせるため、このメソッドを呼びます。編集可能な領域内におけるユーザーの選択が変化するたびに、このメソッドを呼ぶべきです。この選択の境界は、オペレーティングシステムが IME ウィンドウやその他のプラットフォーム固有の編集関係の UI を配置する助けとして用いられます。
構文
js
updateSelectionBounds(selectionBounds)
引数
selectionBounds
-
新しい選択の境界を表す
DOMRect
オブジェクトです。
例外
- 引数が渡されなかった場合、
TypeError
DOMException
が投げられます。 - 渡された引数が
DOMRect
でない場合、TypeError
DOMException
が投げられます。
仕様書
Specification |
---|
EditContext API # dom-editcontext-updateselectionbounds |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
updateSelectionBounds |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- 属する
EditContext
インターフェイス