Packageasgard.text
Classpublic class CoreStyleSheet
InheritanceCoreStyleSheet Inheritance flash.text.StyleSheet
ImplementsIdentifiable

The CoreStyleSheet class extends the flash.text.StyleSheet.

Example :

     import asgard.text.CoreTextField ;
     import asgard.text.CoreStyleSheet ;
     
     var css:String = "p{font-family:arial;font-size:14px;color:#FFFFFF}" ;
     
     var field:CoreTextField = new CoreTextField( "my_field" , 150 , 22 ) ;
     
     field.x = 25 ;
     field.y = 25 ;
     
     field.styleSheet  = new CoreStyleSheet( css ) ;
     



Public Properties
 PropertyDefined by
  id : *
Returns the id of this object.
CoreStyleSheet
Public Methods
 MethodDefined by
  
CoreStyleSheet(source:String = null, id:* = null)
Creates a new CoreStyleSheet instance.
CoreStyleSheet
  
toString():String
Returns the String representation of this object.
CoreStyleSheet
Property detail
idproperty
id:*  [read-write]

Returns the id of this object.

Implementation
    public function get id():*
    public function set id(value:*):void
Constructor detail
CoreStyleSheet()constructor
public function CoreStyleSheet(source:String = null, id:* = null)

Creates a new CoreStyleSheet instance.

Parameters
source:String (default = null) — The CSS String representation to parse.
 
id:* (default = null) — Indicates the id of the object.
Method detail
toString()method
public override function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.