C# Класс Ext.Net.CSS

Наследование: ScriptClass
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CallCSS() защищенный Метод

protected CallCSS ( string name ) : void
name string
Результат void

CreateStyleSheet() публичный статический Метод

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
Результат void

RefreshCache() публичный статический Метод

Refresh the rule cache if you have dynamically added stylesheets
public static RefreshCache ( ) : void
Результат void

RemoveStyleSheet() публичный статический Метод

Removes a style or link tag by id
public static RemoveStyleSheet ( string id ) : void
id string The id of the tag
Результат void

SwapStyleSheet() публичный статический Метод

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
Результат void

ToScript() публичный Метод

public ToScript ( ) : string
Результат string

UpdateRule() публичный статический Метод

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
Результат void