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 CssProperty | Default () |
Gets the default CSS property. More... | |
static bool | Add (Type propertyType) |
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) |
Attempts to find the named property, returning the global property if it's found. More... | |
Static Public Attributes | |
static Dictionary< string, CssProperty > | All |
The lookup itself. Matches property name (e.g. "color") to the property that will process it. More... | |
static Dictionary< string, CssProperty > | AllText |
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.
propertyType | The type of 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.
property | The property to look for. |
|
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.