Class Document

Class Document

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML.dll (25.2.0)

The Document represents the entire HTML, XML or SVG document. Conceptually, it is the root of the document tree, and provides the primary access to the document’s data.

[ComVisible(true)]
[DOMObject]
[DOMName("Document")]
public class Document : Node, INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IDocumentTraversal, IXPathEvaluator, IDocumentEvent, IParentNode, IElementTraversal, INonElementParentNode, IDocumentStyle, IGlobalEventHandlers

Inheritance

objectDOMObjectEventTargetNodeDocument

Derived

HTMLDocument, SVGDocument

Implements

INotifyPropertyChanged, IEventTarget, IDisposable, IXPathNSResolver, IDocumentTraversal, IXPathEvaluator, IDocumentEvent, IParentNode, IElementTraversal, INonElementParentNode, IDocumentStyle, IGlobalEventHandlers

Inherited Members

Node.ELEMENT_NODE, Node.ATTRIBUTE_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, Node.ENTITY_REFERENCE_NODE, Node.ENTITY_NODE, Node.PROCESSING_INSTRUCTION_NODE, Node.COMMENT_NODE, Node.DOCUMENT_NODE, Node.DOCUMENT_TYPE_NODE, Node.DOCUMENT_FRAGMENT_NODE, Node.NOTATION_NODE, Node.HasChildNodes(), Node.Normalize(), Node.CloneNode(), Node.CloneNode(bool), Node.IsEqualNode(Node), Node.IsSameNode(Node), Node.LookupPrefix(string), Node.LookupNamespaceURI(string), Node.IsDefaultNamespace(string), Node.InsertBefore(Node, Node), Node.ReplaceChild(Node, Node), Node.RemoveChild(Node), Node.AppendChild(Node), Node.Dispose(bool), Node.ToString(), Node.NodeType, Node.LocalName, Node.NamespaceURI, Node.Prefix, Node.NodeName, Node.BaseURI, Node.OwnerDocument, Node.ParentNode, Node.ParentElement, Node.ChildNodes, Node.FirstChild, Node.LastChild, Node.PreviousSibling, Node.NextSibling, Node.NodeValue, Node.TextContent, EventTarget.AddEventListener(string, DOMEventHandler, bool), EventTarget.AddEventListener(string, IEventListener), EventTarget.AddEventListener(string, IEventListener, bool), EventTarget.RemoveEventListener(string, DOMEventHandler, bool), EventTarget.RemoveEventListener(string, IEventListener), EventTarget.RemoveEventListener(string, IEventListener, bool), EventTarget.DispatchEvent(Event), EventTarget.Dispose(), EventTarget.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

Document(IBrowsingContext, int)

Initializes a new instance of the Aspose.Html.Dom.Document class.

protected Document(IBrowsingContext context, int implementation)

Parameters

context IBrowsingContext

The Aspose.Html.Dom.IBrowsingContext that will be associated with current document.

implementation int

The document implementation type, such as HTML and SVG.

Properties

BaseURI

The absolute base URI of this node or null if the implementation wasn’t able to obtain an absolute URI.

public override string BaseURI { get; }

Property Value

string

CharacterSet

Gets the document’s encoding.

[DOMName("characterSet")]
public string CharacterSet { get; }

Property Value

string

Charset

Gets the document’s encoding.

[DOMName("charset")]
public string Charset { get; }

Property Value

string

ChildElementCount

Returns the current number of element nodes that are children of this element. 0 if this element has no child nodes that are of nodeType 1.

public int ChildElementCount { get; }

Property Value

int

Children

Returns the child elements.

public HTMLCollection Children { get; }

Property Value

HTMLCollection

ContentType

Gets the document content type.

[DOMName("contentType")]
public string ContentType { get; }

Property Value

string

Context

Gets the current browsing context.

public IBrowsingContext Context { get; }

Property Value

IBrowsingContext

DefaultView

The defaultView IDL attribute of the Document interface, on getting, must return this Document’s browsing context’s WindowProxy object, if this Document has an associated browsing context, or null otherwise.

[DOMName("defaultView")]
public IWindow DefaultView { get; }

Property Value

IWindow

Doctype

The Document Type Declaration associated with this document.

[DOMNullable]
[DOMName("doctype")]
public DocumentType Doctype { get; }

Property Value

DocumentType

DocumentElement

This is a convenience attribute that allows direct access to the child node that is the document element of the document.

[DOMName("documentElement")]
public Element DocumentElement { get; }

Property Value

Element

DocumentURI

The location of the document or null if undefined or if the Document was created using DOMImplementation.createDocument.

[DOMName("documentURI")]
public string DocumentURI { get; }

Property Value

string

FirstElementChild

Returns the first child element node of this element. null if this element has no child elements.

public Element FirstElementChild { get; }

Property Value

Element

Implementation

The DOMImplementation object that handles this document.

[DOMName("implementation")]
public IDOMImplementation Implementation { get; }

Property Value

IDOMImplementation

InputEncoding

Gets the document’s encoding.

[DOMName("inputEncoding")]
public string InputEncoding { get; }

Property Value

string

LastElementChild

Returns the last child element node of this element. null if this element has no child elements.

public Element LastElementChild { get; }

Property Value

Element

Location

The location of the document.

[DOMName("location")]
public Location Location { get; }

Property Value

Location

NextElementSibling

Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree.

public Element NextElementSibling { get; }

Property Value

Element

NodeName

The name of this node, depending on its type.

public override string NodeName { get; }

Property Value

string

NodeType

A code representing the type of the underlying object.

public override ushort NodeType { get; }

Property Value

ushort

Origin

Gets the document origin.

[DOMName("origin")]
public string Origin { get; }

Property Value

string

OwnerDocument

Gets the owner document.

public override Document OwnerDocument { get; }

Property Value

Document

PreviousElementSibling

Returns the previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.

public Element PreviousElementSibling { get; }

Property Value

Element

ReadyState

Returns the document readiness. The “loading” while the Document is loading, “interactive” once it is finished parsing but still loading sub-resources, and “complete” once it has loaded.

[DOMName("readyState")]
public string ReadyState { get; }

Property Value

string

StrictErrorChecking

An attribute specifying whether error checking is enforced or not. When set to false, the implementation is free to not test every possible error case normally defined on DOM operations, and not raise any DOMException on DOM operations or report errors while using Document.normalizeDocument(). In case of error, the behavior is undefined. This attribute is true by default.

[DOMName("strictErrorChecking")]
public bool StrictErrorChecking { get; set; }

Property Value

bool

StyleSheets

A list containing all the style sheets explicitly linked into or embedded in a document. For HTML documents, this includes external style sheets, included via the HTML LINK element, and inline STYLE elements.

public IStyleSheetList StyleSheets { get; }

Property Value

IStyleSheetList

XmlStandalone

An attribute specifying, as part of the XML declaration, whether this document is standalone. This is false when unspecified.

[DOMName("xmlStandalone")]
public bool XmlStandalone { get; set; }

Property Value

bool

XmlVersion

An attribute specifying, as part of the XML declaration, the version number of this document. If there is no declaration and if this document supports the “XML” feature, the value is “1.0”. If this document does not support the “XML” feature, the value is always null.

[DOMName("xmlVersion")]
public string XmlVersion { get; set; }

Property Value

string

Methods

CreateAttribute(string)

Creates an Attr of the given name.

[DOMName("createAttribute")]
public Attr CreateAttribute(string localName)

Parameters

localName string

The attribute name.

Returns

Attr

The Aspose.Html.Dom.Attr.

CreateAttributeNS(string, string)

Creates an attribute of the given qualified name and namespace URI.

[DOMName("createAttributeNS")]
public Attr CreateAttributeNS(string namespaceURI, string qualifiedName)

Parameters

namespaceURI string

The namespace URI.

qualifiedName string

Name of the qualified.

Returns

Attr

The Aspose.Html.Dom.Attr.

CreateCDATASection(string)

Creates a CDATASection node whose value is the specified string.

[DOMName("createCDATASection")]
public CDATASection CreateCDATASection(string data)

Parameters

data string

The CDATA data.

Returns

CDATASection

The Aspose.Html.Dom.CDATASection.

CreateComment(string)

Creates a Comment node given the specified string.

[DOMName("createComment")]
public Comment CreateComment(string data)

Parameters

data string

The comment data.

Returns

Comment

The Aspose.Html.Dom.Comment.

CreateDocumentFragment()

Creates an empty DocumentFragment object.

[DOMName("createDocumentFragment")]
public DocumentFragment CreateDocumentFragment()

Returns

DocumentFragment

The Aspose.Html.Dom.DocumentFragment.

CreateDocumentType(string, string, string, string)

Creates a DocumentType node.

[DOMName("createDocumentType")]
public DocumentType CreateDocumentType(string name, string publicId, string systemId, string internalSubset)

Parameters

name string

The document type name.

publicId string

The public id.

systemId string

The system id.

internalSubset string

The internal subset.

Returns

DocumentType

The Aspose.Html.Dom.DocumentType.

CreateElement(string)

Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.

[DOMName("createElement")]
public Element CreateElement(string localName)

Parameters

localName string

Name of the tag.

Returns

Element

The Aspose.Html.Dom.Element.

CreateElementNS(string, string)

Creates an element of the given qualified name and namespace URI.

[DOMName("createElementNS")]
public Element CreateElementNS(string namespaceURI, string qualifiedName)

Parameters

namespaceURI string

The namespace URI.

qualifiedName string

Name of the qualified.

Returns

Element

The Aspose.Html.Dom.Element.

CreateEntityReference(string)

Creates an EntityReference object. In addition, if the referenced entity is known, the child list of the EntityReference node is made the same as that of the corresponding Entity node.

[DOMName("createEntityReference")]
public EntityReference CreateEntityReference(string name)

Parameters

name string

The entity name.

Returns

EntityReference

The Aspose.Html.Dom.EntityReference.

CreateEvent(string)

Creates an Aspose.Html.Dom.Events.Event of a type supported by the implementation.

public Event CreateEvent(string eventType)

Parameters

eventType string

The eventType parameter specifies the type of Aspose.Html.Dom.Events.Event interface to be created. If the Aspose.Html.Dom.Events.Event interface specified is supported by the implementation this method will return a new Aspose.Html.Dom.Events.Event of the interface type requested. If the Aspose.Html.Dom.Events.Event is to be dispatched via the Aspose.Html.Dom.Events.IEventTarget.DispatchEvent(Aspose.Html.Dom.Events.Event) method the appropriate Aspose.Html.Dom.Events.Event.InitEvent(System.String,System.Boolean,System.Boolean) method must be called after creation in order to initialize the Aspose.Html.Dom.Events.Event’s values.

The Aspose.Html.Dom.Events.IDocumentEvent.CreateEvent(System.String) method is used in creating Aspose.Html.Dom.Events.Events when it is either inconvenient or unnecessary for the user to create an Aspose.Html.Dom.Events.Event themselves. In cases where the implementation provided Aspose.Html.Dom.Events.Event is insufficient, users may supply their own Aspose.Html.Dom.Events.Event implementations for use with the Aspose.Html.Dom.Events.IEventTarget.DispatchEvent(Aspose.Html.Dom.Events.Event) method.

Returns

Event

The newly created Aspose.Html.Dom.Events.Event

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the implementation does not support the type of Aspose.Html.Dom.Events.Event interface requested

CreateExpression(string, IXPathNSResolver)

Creates a parsed XPath expression with resolved namespaces. This is useful when an expression will be reused in an application since it makes it possible to compile the expression string into a more efficient internal form and preresolve all namespace prefixes which occur within the expression.

public IXPathExpression CreateExpression(string expression, IXPathNSResolver resolver)

Parameters

expression string

The XPath expression string to be parsed.

resolver IXPathNSResolver

The resolver permits translation of all prefixes, including the xml namespace prefix, within the XPath expression into appropriate namespace URIs. If this is specified as null, any namespace prefix within the expression will result in Aspose.Html.Dom.DOMException being thrown with the code NAMESPACE_ERR.

Returns

IXPathExpression

The compiled form of the XPath expression.

Exceptions

DOMException

INVALID_EXPRESSION_ERR: Raised if the expression is not legal according to the rules of the Aspose.Html.Dom.XPath.IXPathEvaluator.

DOMException

NAMESPACE_ERR: Raised if the expression contains namespace prefixes which cannot be resolved by the specified Aspose.Html.Dom.XPath.IXPathNSResolver.

CreateNSResolver(Node)

Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document. This adapter works like the DOM Level 3 method lookupNamespaceURI on nodes in resolving the namespaceURI from a given prefix using the current information available in the node’s hierarchy at the time lookupNamespaceURI is called, also correctly resolving the implicit xml prefix.

public IXPathNSResolver CreateNSResolver(Node nodeResolver)

Parameters

nodeResolver Node

The node to be used as a context for namespace resolution.

Returns

IXPathNSResolver

Aspose.Html.Dom.XPath.IXPathNSResolver which resolves namespaces with respect to the definitions in scope for a specified node.

CreateNodeIterator(Node)

Create a new NodeIterator over the subtree rooted at the specified node.

public INodeIterator CreateNodeIterator(Node root)

Parameters

root Node

node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null.

Returns

INodeIterator

The newly created NodeIterator.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

CreateNodeIterator(Node, long)

Create a new NodeIterator over the subtree rooted at the specified node.

public INodeIterator CreateNodeIterator(Node root, long whatToShow)

Parameters

root Node

node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null.

whatToShow long

flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR.

Returns

INodeIterator

The newly created NodeIterator.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

CreateNodeIterator(Node, long, INodeFilter)

Create a new NodeIterator over the subtree rooted at the specified node.

public INodeIterator CreateNodeIterator(Node root, long whatToShow, INodeFilter filter)

Parameters

root Node

node which will be iterated together with its children. The iterator is initially positioned just before this node. The whatToShow flags and the filter, if any, are not considered when setting this position. The root must not be null.

whatToShow long

flag specifies which node types may appear in the logical view of the tree presented by the iterator. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR.

filter INodeFilter

NodeFilter to be used with this TreeWalker, or null to indicate no filter.

Returns

INodeIterator

The newly created NodeIterator.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

CreateProcessingInstruction(string, string)

Creates a ProcessingInstruction node given the specified name and data strings.

[DOMName("createProcessingInstruction")]
public ProcessingInstruction CreateProcessingInstruction(string target, string data)

Parameters

target string

The target.

data string

The instruction data.

Returns

ProcessingInstruction

The Aspose.Html.Dom.ProcessingInstruction.

CreateTextNode(string)

Creates a Text node given the specified string.

[DOMName("createTextNode")]
public Text CreateTextNode(string data)

Parameters

data string

The text data.

Returns

Text

The Aspose.Html.Dom.Text.

CreateTreeWalker(Node)

Create a new TreeWalker over the subtree rooted at the specified node.

public ITreeWalker CreateTreeWalker(Node root)

Parameters

root Node

node which will serve as the root for the TreeWalker. The whatToShow flags and the NodeFilter are not considered when setting this value; any node type will be accepted as the root. The currentNode of the TreeWalker is initialized to this node, whether or not it is visible. The root functions as a stopping point for traversal methods that look upward in the document structure, such as parentNode and nextNode. The root must not be null.

Returns

ITreeWalker

The newly created TreeWalker.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

CreateTreeWalker(Node, long)

Create a new TreeWalker over the subtree rooted at the specified node.

public ITreeWalker CreateTreeWalker(Node root, long whatToShow)

Parameters

root Node

node which will serve as the root for the TreeWalker. The whatToShow flags and the NodeFilter are not considered when setting this value; any node type will be accepted as the root. The currentNode of the TreeWalker is initialized to this node, whether or not it is visible. The root functions as a stopping point for traversal methods that look upward in the document structure, such as parentNode and nextNode. The root must not be null.

whatToShow long

flag specifies which node types may appear in the logical view of the tree presented by the tree-walker. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR.

Returns

ITreeWalker

The newly created TreeWalker.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

CreateTreeWalker(Node, long, INodeFilter)

Create a new TreeWalker over the subtree rooted at the specified node.

public ITreeWalker CreateTreeWalker(Node root, long whatToShow, INodeFilter filter)

Parameters

root Node

node which will serve as the root for the TreeWalker. The whatToShow flags and the NodeFilter are not considered when setting this value; any node type will be accepted as the root. The currentNode of the TreeWalker is initialized to this node, whether or not it is visible. The root functions as a stopping point for traversal methods that look upward in the document structure, such as parentNode and nextNode. The root must not be null.

whatToShow long

flag specifies which node types may appear in the logical view of the tree presented by the tree-walker. See the description of NodeFilter for the set of possible SHOW_ values.These flags can be combined using OR.

filter INodeFilter

NodeFilter to be used with this TreeWalker, or null to indicate no filter.

Returns

ITreeWalker

The newly created TreeWalker.

Exceptions

DOMException

NOT_SUPPORTED_ERR: Raised if the specified root is null.

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Evaluate(string, Node, IXPathNSResolver, XPathResultType, object)

Evaluates an XPath expression string and returns a result of the specified type if possible.

public IXPathResult Evaluate(string expression, Node contextNode, IXPathNSResolver resolver, XPathResultType type, object result)

Parameters

expression string

The XPath expression string to be parsed and evaluated.

contextNode Node

The context is context node for the evaluation of this XPath expression.

resolver IXPathNSResolver

The resolver permits translation of all prefixes, including the xml namespace prefix, within the XPath expression into appropriate namespace URIs.

type XPathResultType

If a specific type is specified, then the result will be returned as the corresponding type.

result object

The result specifies a specific result object which may be reused and returned by this method.

Returns

IXPathResult

The result of the evaluation of the XPath expression.

GetElementById(string)

Returns the Element that has an ID attribute with the given value. If no such element exists, this returns null. If more than one element has an ID attribute with that value, what is returned is undefined.

public Element GetElementById(string elementId)

Parameters

elementId string

The element id.

Returns

Element

The Aspose.Html.Dom.Element.

GetElementsByClassName(string)

Returns a live NodeList object containing all the elements in the document that have all the classes specified in argument. http://www.w3.org/TR/dom/

[DOMName("getElementsByClassName")]
public HTMLCollection GetElementsByClassName(string classNames)

Parameters

classNames string

The string string that contains an unordered set of unique space-separated tokens representing classes (class names)

Returns

HTMLCollection

The Aspose.Html.Dom.Element.

GetElementsByTagName(string)

Returns a NodeList of all the Elements in document order with a given tag name and are contained in the document.

[DOMName("getElementsByTagName")]
public HTMLCollection GetElementsByTagName(string tagname)

Parameters

tagname string

The tagname.

Returns

HTMLCollection

Returns nodes.

GetElementsByTagNameNS(string, string)

Returns a NodeList of all the Elements with a given local name and namespace URI in document order.

[DOMName("getElementsByTagNameNS")]
public HTMLCollection GetElementsByTagNameNS(string namespaceURI, string localName)

Parameters

namespaceURI string

The namespace URI.

localName string

Name of the local.

Returns

HTMLCollection

Returns nodes

ImportNode(Node, bool)

Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node.

[DOMName("importNode")]
public Node ImportNode(Node importedNode, bool deep)

Parameters

importedNode Node

The imported node.

deep bool

if set to true [deep].

Returns

Node

The Aspose.Html.Dom.Node.

Navigate(string)

Loads the document at the specified Uniform Resource Locator (URL) into the current instance, replacing the previous content.

public void Navigate(string address)

Parameters

address string

The document address. It will be combined with the current directory path to form an absolute URL.

Navigate(Url)

Loads the document at the specified Uniform Resource Locator (URL) into the current instance, replacing the previous content.

public void Navigate(Url url)

Parameters

url Url

The document URL.

Navigate(string, string)

Loads the document from specified content and using baseUri to resolve relative resources, replacing the previous content.

public void Navigate(string content, string baseUri)

Parameters

content string

The document content.

baseUri string

The base URI to resolve relative resources. It will be combined with the current directory path to form an absolute URL.

Exceptions

ArgumentNullException

baseUri is null.

Navigate(string, Url)

Loads the document from specified content and using baseUri to resolve relative resources, replacing the previous content.

public void Navigate(string content, Url baseUri)

Parameters

content string

The document content.

baseUri Url

The base URI to resolve relative resources.

Exceptions

ArgumentNullException

baseUri is null.

Navigate(Stream, string)

Loads the document from specified content and using baseUri to resolve relative resources, replacing the previous content. Document loading starts from the current position in the stream.

public void Navigate(Stream content, string baseUri)

Parameters

content Stream

The document content.

baseUri string

The base URI to resolve relative resources. It will be combined with the current directory path to form an absolute URL.

Exceptions

ArgumentNullException

baseUri is null.

Navigate(Stream, Url)

Loads the document from specified content and using baseUri to resolve relative resources, replacing the previous content. Document loading starts from the current position in the stream.

public void Navigate(Stream content, Url baseUri)

Parameters

content Stream

The document content.

baseUri Url

The base URI to resolve relative resources.

Exceptions

ArgumentNullException

baseUri is null.

Navigate(RequestMessage)

Loads the document based on specified request object, replacing the previous content.

public void Navigate(RequestMessage request)

Parameters

request RequestMessage

The request object that is used to load document content.

QuerySelector(string)

Returns the first Element in document, which match selector

public Element QuerySelector(string selector)

Parameters

selector string

The selector.

Returns

Element

The matched node.

QuerySelectorAll(string)

Returns a NodeList of all the Elements in document, which match selector

public NodeList QuerySelectorAll(string selector)

Parameters

selector string

The query selector

Returns

NodeList

Aspose.Html.Collections.HTMLCollection

RenderTo(IDevice)

This method is used to render the contents of the current document to a specified graphical device.

public virtual void RenderTo(IDevice device)

Parameters

device IDevice

The user device.

Write(params string[])

Write a string of text to a document stream opened by open(). Note that the function will produce a document which is not necessarily driven by a DTD and therefore might be produce an invalid result in the context of the document.

[DOMName("write")]
public void Write(params string[] texts)

Parameters

texts string[]

The string to be parsed into some structure in the document structure model.

WriteLn(params string[])

Write a string of text followed by a newline character to a document stream opened by open(). Note that the function will produce a document which is not necessarily driven by a DTD and therefore might be produce an invalid result in the context of the document

[DOMName("writeln")]
public void WriteLn(params string[] texts)

Parameters

texts string[]

The string to be parsed into some structure in the document structure model.

OnAbort

Gets or sets event handler for OnAbort event.

public event DOMEventHandler OnAbort

Event Type

DOMEventHandler

OnBlur

Gets or sets event handler for OnBlur event.

public event DOMEventHandler OnBlur

Event Type

DOMEventHandler

OnCanPlayThrough

Gets or sets event handler for OnCanPlayThrough event.

public event DOMEventHandler OnCanPlayThrough

Event Type

DOMEventHandler

OnCancel

Gets or sets event handler for OnCancel event.

public event DOMEventHandler OnCancel

Event Type

DOMEventHandler

OnCanplay

Gets or sets event handler for OnCanplay event.

public event DOMEventHandler OnCanplay

Event Type

DOMEventHandler

OnChange

Gets or sets event handler for OnChange event.

public event DOMEventHandler OnChange

Event Type

DOMEventHandler

OnClick

Gets or sets event handler for OnClick event.

public event DOMEventHandler OnClick

Event Type

DOMEventHandler

OnCueChange

Gets or sets event handler for OnCueChange event.

public event DOMEventHandler OnCueChange

Event Type

DOMEventHandler

OnDblClick

Gets or sets event handler for OnDblClick event.

public event DOMEventHandler OnDblClick

Event Type

DOMEventHandler

OnDurationChange

Gets or sets event handler for OnDurationChange event.

public event DOMEventHandler OnDurationChange

Event Type

DOMEventHandler

OnEmptied

Gets or sets event handler for OnEmptied event.

public event DOMEventHandler OnEmptied

Event Type

DOMEventHandler

OnEnded

Gets or sets event handler for OnEnded event.

public event DOMEventHandler OnEnded

Event Type

DOMEventHandler

OnError

Gets or sets event handler for OnError event.

public event DOMEventHandler OnError

Event Type

DOMEventHandler

OnFocus

Gets or sets event handler for OnFocus event.

public event DOMEventHandler OnFocus

Event Type

DOMEventHandler

OnInput

Gets or sets event handler for OnInput event.

public event DOMEventHandler OnInput

Event Type

DOMEventHandler

OnInvalid

Gets or sets event handler for OnInvalid event.

public event DOMEventHandler OnInvalid

Event Type

DOMEventHandler

OnKeyDown

Gets or sets event handler for OnKeyDown event.

public event DOMEventHandler OnKeyDown

Event Type

DOMEventHandler

OnKeyPress

Gets or sets event handler for OnKeyPress event.

public event DOMEventHandler OnKeyPress

Event Type

DOMEventHandler

OnKeyUp

Gets or sets event handler for OnKeyUp event.

public event DOMEventHandler OnKeyUp

Event Type

DOMEventHandler

OnLoad

Gets or sets event handler for OnLoad event.

public event DOMEventHandler OnLoad

Event Type

DOMEventHandler

OnLoadStart

Gets or sets event handler for OnLoadStart event.

public event DOMEventHandler OnLoadStart

Event Type

DOMEventHandler

OnLoadedData

Gets or sets event handler for OnLoadedData event.

public event DOMEventHandler OnLoadedData

Event Type

DOMEventHandler

OnLoadedMetadata

Gets or sets event handler for OnLoadedMetadata event.

public event DOMEventHandler OnLoadedMetadata

Event Type

DOMEventHandler

OnMouseDown

Gets or sets event handler for OnMouseDown event.

public event DOMEventHandler OnMouseDown

Event Type

DOMEventHandler

OnMouseEnter

Gets or sets event handler for OnMouseEnter event.

public event DOMEventHandler OnMouseEnter

Event Type

DOMEventHandler

OnMouseLeave

Gets or sets event handler for OnMouseLeave event.

public event DOMEventHandler OnMouseLeave

Event Type

DOMEventHandler

OnMouseMove

Gets or sets event handler for OnMouseMove event.

public event DOMEventHandler OnMouseMove

Event Type

DOMEventHandler

OnMouseOut

Gets or sets event handler for OnMouseOut event.

public event DOMEventHandler OnMouseOut

Event Type

DOMEventHandler

OnMouseOver

Gets or sets event handler for OnMouseOver event.

public event DOMEventHandler OnMouseOver

Event Type

DOMEventHandler

OnMouseUp

Gets or sets event handler for OnMouseUp event.

public event DOMEventHandler OnMouseUp

Event Type

DOMEventHandler

OnMouseWheel

Gets or sets event handler for OnMouseWheel event.

public event DOMEventHandler OnMouseWheel

Event Type

DOMEventHandler

OnPause

Gets or sets event handler for OnPause event.

public event DOMEventHandler OnPause

Event Type

DOMEventHandler

OnPlay

Gets or sets event handler for OnPlay event.

public event DOMEventHandler OnPlay

Event Type

DOMEventHandler

OnPlaying

Gets or sets event handler for OnPlaying event.

public event DOMEventHandler OnPlaying

Event Type

DOMEventHandler

OnProgress

Gets or sets event handler for OnProgress event.

public event DOMEventHandler OnProgress

Event Type

DOMEventHandler

OnRateChange

Gets or sets event handler for OnRateChange event.

public event DOMEventHandler OnRateChange

Event Type

DOMEventHandler

OnReadyStateChange

Gets or sets event handler for OnReadyStateChange event.

public event DOMEventHandler OnReadyStateChange

Event Type

DOMEventHandler

OnReset

Gets or sets event handler for OnReset event.

public event DOMEventHandler OnReset

Event Type

DOMEventHandler

OnResize

Gets or sets event handler for OnResize event.

public event DOMEventHandler OnResize

Event Type

DOMEventHandler

OnScroll

Gets or sets event handler for OnScroll event.

public event DOMEventHandler OnScroll

Event Type

DOMEventHandler

OnSeeked

Gets or sets event handler for OnSeeked event.

public event DOMEventHandler OnSeeked

Event Type

DOMEventHandler

OnSeeking

Gets or sets event handler for OnSeeking event.

public event DOMEventHandler OnSeeking

Event Type

DOMEventHandler

OnSelect

Gets or sets event handler for OnSelect event.

public event DOMEventHandler OnSelect

Event Type

DOMEventHandler

OnShow

Gets or sets event handler for OnShow event.

public event DOMEventHandler OnShow

Event Type

DOMEventHandler

OnStalled

Gets or sets event handler for OnStalled event.

public event DOMEventHandler OnStalled

Event Type

DOMEventHandler

OnSubmit

Gets or sets event handler for OnSubmit event.

public event DOMEventHandler OnSubmit

Event Type

DOMEventHandler

OnSuspend

Gets or sets event handler for OnSuspend event.

public event DOMEventHandler OnSuspend

Event Type

DOMEventHandler

OnTimeUpdate

Gets or sets event handler for OnTimeUpdate event.

public event DOMEventHandler OnTimeUpdate

Event Type

DOMEventHandler

OnToggle

Gets or sets event handler for OnToggle event.

public event DOMEventHandler OnToggle

Event Type

DOMEventHandler

OnVolumeChange

Gets or sets event handler for OnVolumeChange event.

public event DOMEventHandler OnVolumeChange

Event Type

DOMEventHandler

OnWaiting

Gets or sets event handler for OnWaiting event.

public event DOMEventHandler OnWaiting

Event Type

DOMEventHandler