Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.CSS Class Reference

More...

Inheritance diagram for Ext.Net.CSS:
Ext.Net.ScriptClass Ext.Net.IScriptable Ext.Net.IResourceManager

Public Member Functions

override string ToScript ()
 
- Public Member Functions inherited from Ext.Net.ScriptClass
virtual void Render ()
 
virtual void Call (string name)
 
virtual void Call (string name, params object[] args)
 
virtual void Set (string name, object value)
 
virtual void AddScript (string template, params object[] args)
 
virtual void AddScript (string script)
 

Static Public Member Functions

static void CreateStyleSheet (string cssText, string id)
 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. More...
 
static void RefreshCache ()
 Refresh the rule cache if you have dynamically added stylesheets More...
 
static void RemoveStyleSheet (string id)
 Removes a style or link tag by id More...
 
static void SwapStyleSheet (string id, string url)
 Dynamically swaps an existing stylesheet reference for a new one More...
 
static void UpdateRule (string selector, string property, string value)
 Updates a rule property More...
 
static void UpdateRule (string[] selectors, string property, string value)
 Updates a rule property More...
 

Protected Member Functions

virtual void CallCSS (string name, params object[] args)
 
- Protected Member Functions inherited from Ext.Net.ScriptClass
virtual void CallTemplate (string template, string name, params object[] args)
 
virtual string FormatCall (string name, params object[] args)
 
virtual string FormatCallTemplate (string template, string name, params object[] args)
 
virtual string FormatArgs (object[] args)
 

Properties

override string InstanceOf [get]
 
- Properties inherited from Ext.Net.ScriptClass
virtual string InstanceOf [get]
 
virtual Page Page [get]
 
virtual ResourceManager ResourceManager [get]
 
- Properties inherited from Ext.Net.IScriptable
string InstanceOf [get]
 
- Properties inherited from Ext.Net.IResourceManager
ResourceManager ResourceManager [get]
 Get an instance of the ResourceManager More...
 
Page Page [get]
 Get an instance of the Page More...
 

Detailed Description

Member Function Documentation

◆ CallCSS()

virtual void Ext.Net.CSS.CallCSS ( string  name,
params object[]  args 
)
inlineprotectedvirtual

Parameters
name
args

◆ CreateStyleSheet()

static void Ext.Net.CSS.CreateStyleSheet ( string  cssText,
string  id 
)
inlinestatic

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.

Parameters
cssTextThe text containing the css rules
idAn id to add to the stylesheet for later removal

◆ RefreshCache()

static void Ext.Net.CSS.RefreshCache ( )
inlinestatic

Refresh the rule cache if you have dynamically added stylesheets

◆ RemoveStyleSheet()

static void Ext.Net.CSS.RemoveStyleSheet ( string  id)
inlinestatic

Removes a style or link tag by id

Parameters
idThe id of the tag

◆ SwapStyleSheet()

static void Ext.Net.CSS.SwapStyleSheet ( string  id,
string  url 
)
inlinestatic

Dynamically swaps an existing stylesheet reference for a new one

Parameters
idThe id of an existing link tag to remove
urlThe href of the new stylesheet to include

◆ ToScript()

override string Ext.Net.CSS.ToScript ( )
inlinevirtual

Returns

Implements Ext.Net.ScriptClass.

◆ UpdateRule() [1/2]

static void Ext.Net.CSS.UpdateRule ( string  selector,
string  property,
string  value 
)
inlinestatic

Updates a rule property

Parameters
selectorSelector to update
propertyThe css property
valueThe new value for the property

◆ UpdateRule() [2/2]

static void Ext.Net.CSS.UpdateRule ( string[]  selectors,
string  property,
string  value 
)
inlinestatic

Updates a rule property

Parameters
selectorsArray of selectors - it tries each selector until it finds one. Stops immediately once one is found.
propertyThe css property
valueThe new value for the property

Property Documentation

◆ InstanceOf

override string Ext.Net.CSS.InstanceOf
get


The documentation for this class was generated from the following file: