C# Class SharpVectors.Dom.Stylesheets.StyleSheetList

The StyleSheetList interface provides the abstraction of an ordered collection of style sheets. The items in the StyleSheetList are accessible via an integral index, starting from 0.
Inheritance: IStyleSheetList
Show file Open project: codebutler/savagesvg

Public Methods

Method Description
AddCssStyleSheet ( CssStyleSheet ss ) : void
GetStylesForElement ( XmlElement elt, string pseudoElt, CssCollectedStyleDeclaration csd ) : void

Used to find matching style rules in the cascading order

this ( ulong index ) : IStyleSheet

Used to retrieve a style sheet by ordinal index. If index is greater than or equal to the number of style sheets in the list, this returns null.

Private Methods

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

Used to find matching style rules in the cascading order

StyleSheetList ( CssXmlDocument document ) : System

Method Details

AddCssStyleSheet() public method

public AddCssStyleSheet ( CssStyleSheet ss ) : void
ss SharpVectors.Dom.Css.CssStyleSheet
return void

GetStylesForElement() public method

Used to find matching style rules in the cascading order
public GetStylesForElement ( XmlElement elt, string pseudoElt, CssCollectedStyleDeclaration csd ) : void
elt System.Xml.XmlElement The element to find styles for
pseudoElt string The pseudo-element to find styles for
csd SharpVectors.Dom.Css.CssCollectedStyleDeclaration A CssStyleDeclaration that holds the collected styles
return void

this() public method

Used to retrieve a style sheet by ordinal index. If index is greater than or equal to the number of style sheets in the list, this returns null.
public this ( ulong index ) : IStyleSheet
index ulong
return IStyleSheet