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.
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
- classConstructed : Boolean
- CSSTextStylesDependency
Instance properties
- _tf : TextFormat
- styleName : String
- textAlign : String
- fontWeight : String
- color : Number
- fontFamily : String
- textIndent : Number
- fontStyle : String
- marginLeft : Number
- marginRight : Number
- fontSize : Number
- textDecoration : String
- embedFonts : Boolean
Class methods
- classConstruct : Boolean
Instance methods
- __getTextFormat (tf:TextFormat, bAll:Boolean) : Boolean
- getStyle (styleProp:String)
- get a style property
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