C# 클래스 SharpVectors.Dom.Css.CssXmlDocument

A XmlDocument with CSS support
상속: Document, IDocumentCss, ICssView
파일 보기 프로젝트 열기: codebutler/savagesvg 1 사용 예제들

공개 메소드들

메소드 설명
AddStyleElement ( string ns, string localName ) : void

Adds a element type to be used as style elements (e.g. as in the HTML style element)

CreateElement ( string prefix, string localName, string ns ) : XmlElement
CssXmlDocument ( ) : System

Initializes a new instance of CssXmlDocument

CssXmlDocument ( XmlNameTable nt ) : System

Initializes a new instance of CssXmlDocument

GetComputedStyle ( System elt, string pseudoElt ) : SharpVectors.Dom.Css.ICssStyleDeclaration

This method is used to get the computed style as it is defined in [CSS2].

GetOverrideStyle ( System elt, string pseudoElt ) : SharpVectors.Dom.Css.ICssStyleDeclaration

This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.

GetResource ( Uri absoluteUri ) : WebResponse
Load ( XmlReader reader ) : void
Load ( string filename ) : void

Loads a XML document, compare to XmlDocument.Load()

LoadXml ( string xml ) : void
NodeChangedEvent ( Object src, XmlNodeChangedEventArgs args ) : void
SetUserAgentStyleSheet ( string href ) : void

Sets the user agent stylesheet for this document

SetUserStyleSheet ( string href ) : void

Sets the user stylesheet for this document

비공개 메소드들

메소드 설명
setupNodeChangeListeners ( ) : void

메소드 상세

AddStyleElement() 공개 메소드

Adds a element type to be used as style elements (e.g. as in the HTML style element)
public AddStyleElement ( string ns, string localName ) : void
ns string The namespace URI of the element
localName string The local-name of the element
리턴 void

CreateElement() 공개 메소드

public CreateElement ( string prefix, string localName, string ns ) : XmlElement
prefix string
localName string
ns string
리턴 System.Xml.XmlElement

CssXmlDocument() 공개 메소드

Initializes a new instance of CssXmlDocument
public CssXmlDocument ( ) : System
리턴 System

CssXmlDocument() 공개 메소드

Initializes a new instance of CssXmlDocument
public CssXmlDocument ( XmlNameTable nt ) : System
nt System.Xml.XmlNameTable The name table to use
리턴 System

GetComputedStyle() 공개 메소드

This method is used to get the computed style as it is defined in [CSS2].
public GetComputedStyle ( System elt, string pseudoElt ) : SharpVectors.Dom.Css.ICssStyleDeclaration
elt System The element whose style is to be computed. This parameter cannot be null.
pseudoElt string The pseudo-element or null if none.
리턴 SharpVectors.Dom.Css.ICssStyleDeclaration

GetOverrideStyle() 공개 메소드

This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.
public GetOverrideStyle ( System elt, string pseudoElt ) : SharpVectors.Dom.Css.ICssStyleDeclaration
elt System The element whose style is to be modified. This parameter cannot be null.
pseudoElt string The pseudo-element or null if none.
리턴 SharpVectors.Dom.Css.ICssStyleDeclaration

GetResource() 공개 메소드

public GetResource ( Uri absoluteUri ) : WebResponse
absoluteUri System.Uri
리턴 System.Net.WebResponse

Load() 공개 메소드

public Load ( XmlReader reader ) : void
reader XmlReader
리턴 void

Load() 공개 메소드

Loads a XML document, compare to XmlDocument.Load()
public Load ( string filename ) : void
filename string
리턴 void

LoadXml() 공개 메소드

public LoadXml ( string xml ) : void
xml string
리턴 void

NodeChangedEvent() 공개 메소드

public NodeChangedEvent ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
리턴 void

SetUserAgentStyleSheet() 공개 메소드

Sets the user agent stylesheet for this document
public SetUserAgentStyleSheet ( string href ) : void
href string The URI to the stylesheet
리턴 void

SetUserStyleSheet() 공개 메소드

Sets the user stylesheet for this document
public SetUserStyleSheet ( string href ) : void
href string The URI to the stylesheet
리턴 void