Extends
- InteractiveObject
Members
指定されたクラスの空間名を返します。
Returns the space name of the specified class.- Default Value:
- next2d.text.TextField
テキストサイズの自動的な拡大 / 縮小および整列を制御します。
Controls automatic sizing and alignment of text size.- Default Value:
- false
テキストフィールドの自動的な拡大 / 縮小および整列を制御します。
Controls automatic sizing and alignment of text fields.- Default Value:
- TextFieldAutoSize.NONE
テキストフィールドに背景の塗りつぶしがあるかどうかを指定します。
Specifies whether the text field has a background fill.- Default Value:
- false
テキストフィールドの背景の色です。
The color of the text field background.- Default Value:
- 0xffffff
テキストフィールドに境界線があるかどうかを指定します。
Specifies whether the text field has a border.- Default Value:
- false
テキストフィールドの境界線の色です。
The color of the text field border.- Default Value:
- 0x000000
テキストに適用するフォーマットを指定します。
Specifies the formatting to be applied to the text.このオブジェクトでマウスまたはその他のユーザー入力メッセージを
- Default Value:
- false
表示オブジェクトの高さを示します(ピクセル単位)。
Indicates the height of the display object, in pixels.テキストフィールドの内容を HTML で表します。
Contains the HTML representation of the text field contents.- Default Value:
- ""
テキストフィールド内の文字数です。
The int of characters in a text field.ユーザーが入力するときに、テキストフィールドに入力できる最大の文字数です。
The maximum number of characters that the text field can contain,
as entered by a user.- Default Value:
- 0
scrollH の最大値です。
The maximum value of scrollH.scrollV の最大値です。
The maximum value of scrollV.フィールドが複数行テキストフィールドであるかどうかを示します。
Indicates whether field is a multiline text field.- Default Value:
- false
指定されたオブジェクトの空間名を返します。
Returns the space name of the specified object.- Default Value:
- next2d.text.TextField
フィールドが複数行テキストフィールドであるかどうかを示します。
Indicates whether field is a multiline text field.ユーザーがテキストフィールドに入力できる文字のセットを指定します。
Indicates the set of characters that a user can enter into the text field.- Default Value:
- null
スクロール機能のON/OFFの制御。
Control ON/OFF of the scroll function.- Default Value:
- true
現在の水平スクロール位置です。
The current horizontal scrolling position.テキストフィールドのテキストの垂直位置です。
The vertical position of text in a text field.テキストフィールド内の現在のテキストであるストリングです。
A string that is the current text in the text field.- Default Value:
- ""
テキストフィールドのテキストの色です(16 進数形式)。
The color of the text in a text field, in hexadecimal format.テキストの高さです(ピクセル単位)。
The height of the text in pixels.テキストの幅です(ピクセル単位)。
The width of the text in pixels.輪郭のテキスト幅です。0(デフォルト値)で無効にできます。
The text width of the outline, which can be disabled with 0 (the default value).- Default Value:
- 0
輪郭のテキストの色です(16 進数形式)。
The color of the outline text. (Hexadecimal format)- Default Value:
- 0
テキストフィールドのタイプです。
The type of the text field.- Default Value:
- TextFieldType.STATIC
縦方向の揃え位置を指定するプロパティです。
This property specifies the vertical alignment position.- Default Value:
- extFormatVerticalAlign.TOP
表示オブジェクトの幅を示します(ピクセル単位)。
Indicates the width of the display object, in pixels.テキストフィールドのテキストを折り返すかどうかを示すブール値です。
A Boolean value that indicates whether the text field has word wrap.- Default Value:
- false
親 DisplayObjectContainer のローカル座標を基準にした
DisplayObject インスタンスの x 座標を示します。
Indicates the x coordinate
of the DisplayObject instance relative to the local coordinates
of the parent DisplayObjectContainer.親 DisplayObjectContainer のローカル座標を基準にした
DisplayObject インスタンスの y 座標を示します。
Indicates the y coordinate
of the DisplayObject instance relative to the local coordinates
of the parent DisplayObjectContainer.
Methods
指定されたクラスのストリングを返します。
Returns the string representation of the specified class.- Default Value:
- [class TextField]
Returns:
Type Description string newText パラメーターで指定されたストリングを、
テキストフィールドのテキストの最後に付加します。
Appends the string specified by the newText parameter
to the end of the text of the text field.Name Type Description text
string Returns:
voidlineIndex パラメーターで指定された行のテキストを返します。
Returns the text of the line specified by the lineIndex parameter.Name Type Description line_index
number Returns:
Type Description string beginIndex パラメーターと endIndex パラメーターで指定された範囲の
テキストのフォーマット情報を含む TextFormat オブジェクトを返します。
Returns a TextFormat object that contains formatting information
for the range of text that the beginIndex and endIndex parameters specify.Name Type Default Description begin_index
int -1 optional end_index
int -1 optional Returns:
Type Description TextFormat beginIndex パラメーターと endIndex パラメーターで指定された文字範囲を、
newText パラメーターの内容に置き換えます。
Replaces the range of characters that the beginIndex
and endIndex parameters specify with the contents of the newText parameter.Name Type Description begin_index
number end_index
number new_text
string Returns:
Type Description void format パラメーターで指定したテキストフォーマットを、
テキストフィールド内の指定されたテキストに適用します。
Applies the text formatting that the format parameter specifies
to the specified text in a text field.Name Type Default Description text_format
TextFormat begin_index
number -1 optional end_index
number -1 optional Returns:
Type Description void 指定されたオブジェクトのストリングを返します。
Returns the string representation of the specified object.- Default Value:
- [object TextField]
Returns:
Type Description string