Method | Description | |
---|---|---|
CreateStyleSheet ( string cssText, string id ) : void |
Creates a stylesheet from a text blob of rules. These rules will be wrapped in a STYLE tag and appended to the HEAD of the document.
|
|
RefreshCache ( ) : void |
Refresh the rule cache if you have dynamically added stylesheets
|
|
RemoveStyleSheet ( string id ) : void |
Removes a style or link tag by id
|
|
SwapStyleSheet ( string id, string url ) : void |
Dynamically swaps an existing stylesheet reference for a new one
|
|
ToScript ( ) : string |
|
|
UpdateRule ( string selector, string property, string value ) : void |
Updates a rule property
|
Method | Description | |
---|---|---|
CallCSS ( string name ) : void |
|
public static CreateStyleSheet ( string cssText, string id ) : void | ||
cssText | string | The text containing the css rules |
id | string | An id to add to the stylesheet for later removal |
return | void |
public static RemoveStyleSheet ( string id ) : void | ||
id | string | The id of the tag |
return | void |
public static SwapStyleSheet ( string id, string url ) : void | ||
id | string | The id of an existing link tag to remove |
url | string | The href of the new stylesheet to include |
return | void |
public static UpdateRule ( string selector, string property, string value ) : void | ||
selector | string | Selector to update |
property | string | The css property |
value | string | The new value for the property |
return | void |