T > TextField.getTextFormat |  |

TextField.getTextFormat

TextField, TextField.getTextFormat, getTextFormat

Availability

Flash Player 6.

Usage

    TextField.getTextFormat()
    TextField.getTextFormat (index)
    TextField.getTextFormat (beginIndex, endIndex)

Parameters

`index` An integer that specifies a character in a string.

Returns

An object.

Description

Method; (Usage 1) returns a TextFormat object containing formatting information for all text in a text field. Only properties that are common to all text in the text field are set in the resulting TextFormat object. Any property which is mixed, meaning that it has different values at different points in the text, has its value set to `null`.

Usage 2: Returns a TextFormat object containing a copy of the text field's text format at `index`.

Usage 3: Returns a TextFormat object containing formatting information for the span of text from `beginIndex` to `endIndex`.þ

See also

`TextField.getNewTextFormat`, `TextField.setNewTextFormat`, `TextField.setTextFormat`