FlashTextEditor.setFormat

Availability

Flash Player 8
Flash Player 9(AS3 version)

Usage

myTextEditor.setFormat( format:Object, paragraph:Boolean, removeFirst:Boolean )

Parameters

format - Object containing TextFormat properties.
paragraph - Boolean. If value is 'true' formatting will be applied to the paragraph.
removeFirst - Boolean. If value is 'true' old format will be removed before applying the new one.

Returns

Nothing.

Description

Method; Changes format of the currently selected text.

Example

The following code will change format of the selected text:

myTextEditor.setFormat({
		bold:true,
		italic:true
});