| Package | asgard.text |
| Class | public class CoreStyleSheet |
| Inheritance | CoreStyleSheet flash.text.StyleSheet |
| Implements | Identifiable |
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 ) ;
| 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
Returns the
String representation of this object. | CoreStyleSheet | ||
| id | property |
id:* [read-write]Returns the id of this object.
Implementation public function get id():*
public function set id(value:*):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 |
public override function toString():String
Returns the String representation of this object.
String — the String representation of this object.
|