Detailed Description

A global lookup of keyword name to handler. E.g. auto or inherit. Css keywords are instanced globally and mapped to the names they use.

Static Public Member Functions

static bool Add (Type keywordType)
 Adds a CSS keyword to the global set. This is generally done automatically, but you can also add one manually if you wish. More...
 
static CssKeyword Get (string name)
 Attempts to find the named keyword, returning the global instance if it's found. More...
 

Static Public Attributes

static Dictionary< string,
CssKeyword
All
 The lookup itself. Matches name (e.g. "auto") to the function that will process it. More...
 

Member Function Documentation

static bool Css.CssKeywords.Add ( Type  keywordType)
inlinestatic

Adds a CSS keyword to the global set. This is generally done automatically, but you can also add one manually if you wish.

Parameters
cssKeywordThe keyword to add.
Returns
True if adding it was successful.
static CssKeyword Css.CssKeywords.Get ( string  name)
inlinestatic

Attempts to find the named keyword, returning the global instance if it's found.

Parameters
nameThe rule to look for.
Returns
The global CssKeyword if the rule was found; Null otherwise.

Member Data Documentation

Dictionary<string,CssKeyword> Css.CssKeywords.All
static

The lookup itself. Matches name (e.g. "auto") to the function that will process it.