A global lookup of property name to property. CssHandlers are instanced globally and mapped to the property names they accept. Note that properties are not instanced per element.
Static Public Member Functions | |
static void | Setup (Type[] allTypes) |
Sets up the global lookup by searching for any classes which inherit from CssProperty. More... | |
static CssProperty | Default () |
Gets the default CSS property. More... | |
static bool | Add (CssProperty property) |
Adds a CSS property to the global set. This is generally done automatically, but you can also add one manually if you wish. More... | |
static CssProperty | Get (string property, string defaultProperty) |
Attempts to find the property with the given name. If it's not found, a default property which is known to exist can be returned instead. For example, property "color". More... | |
static CssProperty | Get (string property, out int innerIndex) |
Attempts to find the named property, returning the global property if it's found. This works with all properties as it resolve the index too. More... | |
static CssProperty | Get (string property) |
Attempts to find the named property, returning the global property if it's found. More... | |
Static Public Attributes | |
static Dictionary< string, CssProperty > | Properties |
The lookup itself. Matches property name (e.g. "color") to the property that will process it. More... | |
static Dictionary< string, CssProperty > | TextProperties |
All properties which apply directly to text. E.g. color,font-size etc. More... | |
|
inlinestatic |
Adds a CSS property to the global set. This is generally done automatically, but you can also add one manually if you wish.
property | The property to add. |
|
inlinestatic |
Gets the default CSS property.
|
inlinestatic |
Attempts to find the property with the given name. If it's not found, a default property which is known to exist can be returned instead. For example, property "color".
property | The property to look for. |
defaultProperty | If the given property is not found, this is used instead. |
|
inlinestatic |
Attempts to find the named property, returning the global property if it's found. This works with all properties as it resolve the index too.
property | The property to look for. |
innerIndex | Some properties are sets of properties, such as color and color-r. color-r is an "inner" property of color. |
|
inlinestatic |
Attempts to find the named property, returning the global property if it's found.
property | The property to look for. |
|
inlinestatic |
Sets up the global lookup by searching for any classes which inherit from CssProperty.
|
static |
The lookup itself. Matches property name (e.g. "color") to the property that will process it.
|
static |
All properties which apply directly to text. E.g. color,font-size etc.