C# Class Ext.Net.CSS

Inheritance: ScriptClass
Exibir arquivo Open project: pgodwin/Ext.net

Public Methods

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

Protected Methods

Method Description
CallCSS ( string name ) : void

Method Details

CallCSS() protected method

protected CallCSS ( string name ) : void
name string
return void

CreateStyleSheet() public static method

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.
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

RefreshCache() public static method

Refresh the rule cache if you have dynamically added stylesheets
public static RefreshCache ( ) : void
return void

RemoveStyleSheet() public static method

Removes a style or link tag by id
public static RemoveStyleSheet ( string id ) : void
id string The id of the tag
return void

SwapStyleSheet() public static method

Dynamically swaps an existing stylesheet reference for a new one
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

ToScript() public method

public ToScript ( ) : string
return string

UpdateRule() public static method

Updates a rule property
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