메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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 |
리턴 | void |
public static RemoveStyleSheet ( string id ) : void | ||
id | string | The id of the tag |
리턴 | 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 |
리턴 | 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 |
리턴 | void |