C# Class SharpVectors.Dom.Stylesheets.StyleSheet

The StyleSheet interface is the abstract base interface for any type of style sheet. It represents a single style sheet associated with a structured document. In HTML, the StyleSheet interface represents either an external style sheet, included via the HTML LINK element, or an inline STYLE element. In XML, this interface represents an external style sheet, included via a style sheet processing instruction.
Inheritance: IStyleSheet
ファイルを表示 Open project: codebutler/savagesvg

Private Properties

Property Type Description
LoadSheet void
ResolveOwnerNode System.Xml.XmlNode
StyleSheet System
StyleSheet System
StyleSheet System
StyleSheet System

Protected Methods

Method Description
GetStylesForElement ( XmlElement elt, string pseudoElt, MediaList ml, CssCollectedStyleDeclaration csd ) : void

Used to find matching style rules in the cascading order

Private Methods

Method Description
LoadSheet ( ) : void
ResolveOwnerNode ( ) : XmlNode
StyleSheet ( ) : System
StyleSheet ( XmlElement styleElement ) : System
StyleSheet ( XmlNode ownerNode, string href, string type, string title, string media ) : System
StyleSheet ( XmlProcessingInstruction pi ) : System

Method Details

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 MediaList The medialist that the document is using
csd SharpVectors.Dom.Css.CssCollectedStyleDeclaration A CssStyleDeclaration that holds the collected styles
return void