CSSStyleDeclaration

Kind of class:class
Inherits from:none
Classpath:mx.styles.CSSStyleDeclaration
File last modified:Tuesday, 18 December 2007, 15:44:38
The class that represents a set of CSS style rules. Note that UIObject
also has a similar implementation. Styles may be set directly on UIObjects or
indirectly by referencing an instance of this class using the styleName property.
See also:

Summary


Class properties
Instance properties
Class methods
Instance methods

Class properties

classConstructed

static classConstructed:Boolean = classConstruct()
(read)

CSSTextStylesDependency

static CSSTextStylesDependency = CSSTextStyles
(read)

Instance properties

_tf

_tf:TextFormat
(read)

color

color:Number
(read)

embedFonts

embedFonts:Boolean
(read)

fontFamily

fontFamily:String
(read)

fontSize

fontSize:Number
(read)

fontStyle

fontStyle:String
(read)

fontWeight

fontWeight:String
(read)

marginLeft

marginLeft:Number
(read)

marginRight

marginRight:Number
(read)

styleName

styleName:String
(read)

textAlign

textAlign:String
(read)

textDecoration

textDecoration:String
(read)

textIndent

textIndent:Number
(read)

Class methods

classConstruct

static function classConstruct (
) : Boolean

Instance methods

__getTextFormat

function __getTextFormat (
tf:TextFormat, bAll:Boolean) : Boolean

getStyle

function getStyle (
styleProp:String)

get a style property
Parameters:
String:
prop name of style property
Returns:
  • Variant the style value