TextFormat: TextFormat() コンストラクター
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
TextFormat() コンストラクターは、新しい TextFormat オブジェクトを返します。
構文
js
new TextFormat()
new TextFormat(options)
引数
options省略可-
省略可能なオブジェクトで、以下のプロパティを持ちます。
rangeStart-
書式を適用するべきテキストの範囲の始点を表す数値です。
rangeEnd-
書式を適用するべきテキストの範囲の終点を表す数値です。
underlineStyle-
書式を適用するべきテキストの範囲の下線のスタイルを表す文字列です。
underlineThickness-
書式を適用するべきテキストの範囲の下線の太さを表す文字列です。
仕様書
| Specification |
|---|
| EditContext API> # dom-textformat-constructor> |
ブラウザーの互換性
関連情報
- 属する
TextFormatインターフェイス