C# Class SharpVectors.Dom.Css.CssRule

Inheritance: ICssRule
Show file Open project: codebutler/savagesvg Class Usage Examples

Protected Properties

Property Type Description
Origin CssStyleSheetType
ReadOnly bool

Public Methods

Method Description
ResolveOwnerNode ( ) : XmlNode

Finds the owner node of this rule

Protected Methods

Method Description
CssRule ( object parent, bool readOnly, string replacedStrings, CssStyleSheetType origin ) : System
GetStylesForElement ( XmlElement elt, string pseudoElt, MediaList ml, CssCollectedStyleDeclaration csd ) : void

Used to find matching style rules in the cascading order

Private Methods

Method Description
DeReplaceStrings ( string s ) : string
StringReplaceEvaluator ( Match match ) : string

Method Details

CssRule() protected method

protected CssRule ( object parent, bool readOnly, string replacedStrings, CssStyleSheetType origin ) : System
parent object
readOnly bool
replacedStrings string
origin CssStyleSheetType
return System

GetStylesForElement() protected method

Used to find matching style rules in the cascading order
protected GetStylesForElement ( XmlElement elt, string pseudoElt, MediaList ml, CssCollectedStyleDeclaration csd ) : void
elt System.Xml.XmlElement The element to find styles for
pseudoElt string The pseudo-element to find styles for
ml SharpVectors.Dom.Stylesheets.MediaList The medialist that the document is using
csd CssCollectedStyleDeclaration A CssStyleDeclaration that holds the collected styles
return void

ResolveOwnerNode() public method

Finds the owner node of this rule
public ResolveOwnerNode ( ) : XmlNode
return System.Xml.XmlNode

Property Details

Origin protected property

The origin stylesheet type of this rule
protected CssStyleSheetType Origin
return CssStyleSheetType

ReadOnly protected property

Specifies the read/write state of the instance
protected bool ReadOnly
return bool