Main Page | Packages | Class Tree | Index | Help

mx.styles

class CSSStyleDeclaration

Object
  |
  +--mx.styles.CSSStyleDeclaration

All Known Subclasses: DataGridColumn

class CSSStyleDeclaration
extends Object

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:


Field Summary


_tf: TextFormat
local copy of the Flash TextFormat

static
classConstructed: Boolean



color: Number


static
CSSTextStylesDependency



embedFonts: Boolean



fontFamily: String



fontSize: Number



fontStyle: String



fontWeight: String



marginLeft: Number



marginRight: Number



styleName: String
the name of a CSSStyleDeclaration as found on _global.styles.


textAlign: String
these get replaced by getters and setters via the TextStyles mixin


textDecoration: String



textIndent: Number


Fields inherited from class Object

__proto__, constructor, prototype

Method Summary


__getTextFormat ( tf: TextFormat, bAll: Boolean ): Boolean
used to calculate the Flash TextFormat object

static
classConstruct ( ): Boolean



getStyle ( styleProp: String )
get a style property

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

_tf

var _tf: TextFormat
local copy of the Flash TextFormat

classConstructed

static var classConstructed: Boolean

color

var color: Number

CSSTextStylesDependency

static var CSSTextStylesDependency

embedFonts

var embedFonts: Boolean

fontFamily

var fontFamily: String

fontSize

var fontSize: Number

fontStyle

var fontStyle: String

fontWeight

var fontWeight: String

marginLeft

var marginLeft: Number

marginRight

var marginRight: Number

styleName

var styleName: String
the name of a CSSStyleDeclaration as found on _global.styles.

textAlign

var textAlign: String
these get replaced by getters and setters via the TextStyles mixin

textDecoration

var textDecoration: String

textIndent

var textIndent: Number

Method Documentation

__getTextFormat

function __getTextFormat(tf: TextFormat,
 bAll: Boolean): Boolean
used to calculate the Flash TextFormat object

classConstruct

static function classConstruct(): Boolean

getStyle

function getStyle(styleProp: String)
get a style property

Parameters:
styleProp
String prop name of style property
Returns:
Variant the style value


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc