Compartir a través de


ISVGDocument interface

Represents an SVG document.

Members

The ISVGDocument interface inherits from the IDispatch interface. ISVGDocument also has these types of members:

  • Properties

Properties

The ISVGDocument interface has these properties.

Property Access type Description

ISVGDocument::rootElement

Read-only

Gets the root svg element in the document hierarchy.

 

Remarks

When the root element of the XML document hierarchy is an svg element, such as when you view a standalone SVG file, an SVGDocument object exists.

When an svg element is embedded inline as a component of a document from another namespace, such as when it is embedded within an XHTML document, an SVGDocument object does not exist. Instead, the root object in the document object hierarchy is a document object of a different type, such as an HTMLDocument object.

When an SVG document is embedded by reference, such as when an XHTML document has an OBJECT element whose href attribute references an SVG document, there are two distinct DOM hierarchies:

  • The first DOM hierarchy is for the referencing document (for example, an XHTML document).
  • The second DOM hierarchy is for the referenced SVG document, and the root object of the document object model hierarchy is an SVGDocument object.

Requirements

Minimum supported client

Windows Vista with SP1, Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch