C# 클래스 SharpVectors.Dom.Svg.SvgDocument

The root object in the document object hierarchy of an Svg document.

When an 'svg' element is embedded inline as a component of a document from another namespace, such as when an 'svg' element is embedded inline within an XHTML document [XHTML], then an ISvgDocument object will not exist; instead, the root object in the document object hierarchy will be a Document object of a different type, such as an HTMLDocument object.

However, an ISvgDocument object will indeed exist when the root element of the XML document hierarchy is an 'svg' element, such as when viewing a stand-alone SVG file (i.e., a file with MIME type "image/svg+xml"). In this case, the ISvgDocument object will be the root object of the document object model hierarchy.

In the case where an SVG document is embedded by reference, such as when an XHTML document has an 'object' element whose href attribute references an SVG document (i.e., a document whose MIME type is "image/svg+xml" and whose root element is thus an 'svg' element), there will exist two distinct DOM hierarchies. The first DOM hierarchy will be for the referencing document (e.g., an XHTML document). The second DOM hierarchy will be for the referenced SVG document. In this second DOM hierarchy, the root object of the document object model hierarchy is an ISvgDocument object.

The ISvgDocument interface contains a similar list of attributes and methods to the HTMLDocument interface described in the Document Object Model (HTML) Level 1 chapter of the [DOM1] specification.

상속: SharpVectors.Dom.Css.CssXmlDocument, ISvgDocument
파일 보기 프로젝트 열기: codebutler/savagesvg 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SvgNamespace string
XLinkNamespace string

공개 메소드들

메소드 설명
CreateElement ( string prefix, string localName, string ns ) : XmlElement
GetElementById ( string elementId ) : XmlElement
GetNodeByUri ( Uri absoluteUri ) : XmlNode
GetNodeByUri ( string absoluteUrl ) : XmlNode
Load ( Stream stream ) : void

Loads the XML document from the specified stream.

Load ( TextReader reader ) : void

Loads the XML document from the specified TextReader.

Load ( XmlReader reader ) : void

Loads the XML document from the specified XmlReader.

Load ( string url ) : void

Loads the XML document from the specified URL.

Load ( string url, Stream stream ) : void

Loads the XML document from the specified stream but with the specified base URL

Render ( ISvgRenderer renderer ) : void
ResolveUri ( string uri ) : Uri
SetTagNameNodeType ( string prefix, string localName, Type type ) : void
Supports ( string feature, string version ) : bool
SvgDocument ( SvgWindow window ) : System

보호된 메소드들

메소드 설명
buildTypeDictionary ( ) : void

buildTypeDictionary

비공개 메소드들

메소드 설명
LoadAndFire ( XmlReader reader ) : void

Loads the specified XML data and fires load events.

prepareXmlResolver ( XmlReader reader ) : void

메소드 상세

CreateElement() 공개 메소드

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

GetElementById() 공개 메소드

public GetElementById ( string elementId ) : XmlElement
elementId string
리턴 System.Xml.XmlElement

GetNodeByUri() 공개 메소드

public GetNodeByUri ( Uri absoluteUri ) : XmlNode
absoluteUri System.Uri
리턴 System.Xml.XmlNode

GetNodeByUri() 공개 메소드

public GetNodeByUri ( string absoluteUrl ) : XmlNode
absoluteUrl string
리턴 System.Xml.XmlNode

Load() 공개 메소드

Loads the XML document from the specified stream.
public Load ( Stream stream ) : void
stream Stream /// The stream containing the XML document to load. ///
리턴 void

Load() 공개 메소드

Loads the XML document from the specified TextReader.
public Load ( TextReader reader ) : void
reader System.IO.TextReader
리턴 void

Load() 공개 메소드

Loads the XML document from the specified XmlReader.
public Load ( XmlReader reader ) : void
reader XmlReader /// The XmlReader used to feed the XML /// data into the document. ///
리턴 void

Load() 공개 메소드

Loads the XML document from the specified URL.
public Load ( string url ) : void
url string /// URL for the file containing the XML document to load. ///
리턴 void

Load() 공개 메소드

Loads the XML document from the specified stream but with the specified base URL
public Load ( string url, Stream stream ) : void
url string /// Base URL for the stream from which the XML document is loaded. ///
stream Stream /// The stream containing the XML document to load. ///
리턴 void

Render() 공개 메소드

public Render ( ISvgRenderer renderer ) : void
renderer ISvgRenderer
리턴 void

ResolveUri() 공개 메소드

public ResolveUri ( string uri ) : Uri
uri string
리턴 System.Uri

SetTagNameNodeType() 공개 메소드

public SetTagNameNodeType ( string prefix, string localName, Type type ) : void
prefix string
localName string
type System.Type
리턴 void

Supports() 공개 메소드

public Supports ( string feature, string version ) : bool
feature string
version string
리턴 bool

SvgDocument() 공개 메소드

public SvgDocument ( SvgWindow window ) : System
window SvgWindow
리턴 System

buildTypeDictionary() 보호된 메소드

buildTypeDictionary
protected buildTypeDictionary ( ) : void
리턴 void

프로퍼티 상세

SvgNamespace 공개적으로 정적으로 프로퍼티

public static string SvgNamespace
리턴 string

XLinkNamespace 공개적으로 정적으로 프로퍼티

public static string XLinkNamespace
리턴 string