F > Property summary for the FStyleFormat object

 

Property summary for the FStyleFormat object

The following tables lists the property summaries for the FStyleFormat object.

Property

Description

FStyleFormat.arrow

The color of the arrow used in scroll bars and drop-down lists.

FStyleFormat.background

The color of the background portion of a component.

FStyleFormat.backgroundDisabled

The color of the background portion of a disabled component.

FStyleFormat.check

The color of the check mark in a selected check box.

FStyleFormat.darkshadow

The color of the inner border or darker shadow portion of a component.

FStyleFormat.face

The main color of the component.

FStyleFormat.foregroundDisabled

The foreground color of a disabled component.

FStyleFormat.highlight

The color for the inner border or darker shadow portion of a component when it is selected.

FStyleFormat.highlight3D

The color for the outer border or light shadow portion of a component when it is selected.

FStyleFormat.radioDot

The color of the dot in a selected radio button.

FStyleFormat.scrollTrack

The color of the track in a scroll bar.

FStyleFormat.selection

The color of the selection bar highlighting a list item in a component.

FStyleFormat.selectionDisabled

The color of the selection bar that highlights a list item in a disabled component.

FStyleFormat.selectionUnfocused

The color of the selection bar when the component does not have key board focus.

FStyleFormat.shadow

The color of the outer border or light shadow portion of a component.

FStyleFormat.textAlign

The alignment (left, right, or center) for text displayed in or on a component.

FStyleFormat.textBold

Specifies whether text is bold (true) or not (false).

FStyleFormat.textColor

The default text color in all components assigned to the style format.

FStyleFormat.textDisabled

The color of the text in a disabled component.

FStyleFormat.textFont

The name of the font to display text.

FStyleFormat.textIndent

The indentation of the text from the left margin to the first text character, in pixels.

FStyleFormat.textItalic

Specifies whether text is italic (true) or not (false).

FStyleFormat.textLeftMargin

The left paragraph margin for text, in pixels.

FStyleFormat.textRightMargin

The right paragraph margin for text, in pixels.

FStyleFormat.textSelected

The color of a selected list item in a component.

FStyleFormat.textSize

The size of the text, in points.

FStyleFormat.textUnderline

Specifies whether text is underlined (true) or not (false).


 
Constructor for the FStyleFormat object

Availability

Flash Player 6.

Usage

new FStyleFormat()

Parameters

None.

Returns

An instance of the FStyleFormat object.

Description

Method; creates a new FStyleFormat object. You create new FStyleFormat objects to define text and color properties for custom style formats used with custom components or with the Flash UI components. All Flash UI components are assigned by default to globalStyleFormat, which is an instance of the FStyleFormat object. You do not need to create a new instance of the FStyleFormat object to change properties in the global style format, because it already exists. You can also use setStyleProperty to change properties for specific component instances without using a constructor.

For more information, see the setStyleProperty method available to each component—FCheckBox.setStyleProperty, FComboBox.setStyleProperty, and so on. See also the Customizing component colors and text of the Using Components chapter of Using Flash.

Example

The following example creates the new style format formStyleFormat.

formStyleFormat = new StyleFormat();