F > FStyleFormat.selection |  |

FStyleFormat.selection

FStyleFormat, FStyleFormat.selection, selection

Availability

Flash Player 6.

Usage

    myStyleFormat.selection

Description

Property; the RGB color value for the bar used to highlight the selected item in a component's list. This property works with the `FStyleFormat.textSelected` property to display selected items, and you should coordinate the colors to make text easy to read. For example, the global style format assigns a blue color value to the `selection` property used to display the selection bar in the ListBox and ComboBox components, and assigns a white color value to the `textSelected` property; this color combination allows the user to view selected text easily. The color value must be in the format 0xRRGGBB.

You must use `FStyleFormat.applyChanges` when updating properties with a new value.

Example

The following code assigns a value of `0x87CEEB` to the `selection` property in `formStyleFormat`, producing a sky-blue selection bar.

    formStyleFormat.selection = 0x87CEEB;

See also

    FStyleFormat.textSelected