| Package | vegas.text |
| Class | public class CoreStyleSheet |
| Inheritance | CoreStyleSheet flash.text.StyleSheet |
| Implements | Identifiable |
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 ) ;
| Property | Defined By | ||
|---|---|---|---|
| id : *
Returns the id of this object. | CoreStyleSheet | ||
| Method | Defined By | ||
|---|---|---|---|
CoreStyleSheet(source:String = null, id:* = null)
Creates a new CoreStyleSheet instance. | CoreStyleSheet | ||
toString():String [override]
Returns the String representation of this object. | CoreStyleSheet | ||
| id | property |
id:*Returns the id of this object.
public function get id():* public function set id(value:any):void| CoreStyleSheet | () | Constructor |
public function CoreStyleSheet(source:String = null, id:* = null)Creates a new CoreStyleSheet instance.
Parameterssource:String (default = null) — The CSS String representation to parse.
| |
id:* (default = null) — Indicates the id of the object.
|
| toString | () | method |
override public function toString():String
Returns the String representation of this object.
String — the String representation of this object.
|