Detailed Description

A global lookup of units to handler. E.g. ..px is a unit. A global one is instanced and copied when it's required.

Static Public Member Functions

static void Add (Type unitType)
 Adds a unit by its type. More...
 

Static Public Attributes

static Dictionary< char,
CssUnitHandlers
AllEnd
 A mapping which maps first character to a set of CSS units. Applies to the end of a value, e.g. % or px. More...
 
static Dictionary< char,
CssUnitHandlers
AllStart
 A mapping which maps first character to a set of CSS units. Applies to the start of a value, e.g. " or #. More...
 

Static Private Member Functions

static void AddToSet (string[] names, Dictionary< char, CssUnitHandlers > set, CssUnit cssUnit)
 Adds a CSS at rule to the global set. More...
 

Member Function Documentation

static void Css.CssUnits.Add ( Type  unitType)
inlinestatic

Adds a unit by its type.

Parameters
unitTypeThe type of the unit to add.
static void Css.CssUnits.AddToSet ( string[]  names,
Dictionary< char, CssUnitHandlers set,
CssUnit  cssUnit 
)
inlinestaticprivate

Adds a CSS at rule to the global set.

Parameters
cssUnitThe at rule to add.
Returns
True if adding it was successful.

Member Data Documentation

Dictionary<char,CssUnitHandlers> Css.CssUnits.AllEnd
static

A mapping which maps first character to a set of CSS units. Applies to the end of a value, e.g. % or px.

Dictionary<char,CssUnitHandlers> Css.CssUnits.AllStart
static

A mapping which maps first character to a set of CSS units. Applies to the start of a value, e.g. " or #.