Packagevegas.text
Classpublic class CoreStyleSheet
InheritanceCoreStyleSheet Inheritance flash.text.StyleSheet
Implements Identifiable

The CoreStyleSheet class extends the flash.text.StyleSheet.

Example :

     import vegas.text.CoreTextField ;
     import vegas.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
[override] Returns the String representation of this object.
CoreStyleSheet
Property Detail
idproperty
id:*

Returns the id of this object.


Implementation
    public function get id():*
    public function set id(value:any):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
override public function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.