This documentation is archived and is not being maintained.

HtmlDocument Methods

The HtmlDocument type exposes the following members.

Public method AttachEventHandler Adds an event handler for the named HTML DOM event.
Public method CreateElement Creates a new HtmlElement of the specified HTML tag type.
Public method DetachEventHandler Removes an event handler from a named event on the HTML DOM.
Public method Equals Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).)
Public method ExecCommand Executes the specified command against the document.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Focus Sets user input focus on the current document.
Public method GetElementById Retrieves a single HtmlElement using the element's ID attribute as a search key.
Public method GetElementFromPoint Retrieves the HTML element located at the specified client coordinates.
Public method GetElementsByTagName Retrieve a collection of elements with the specified HTML tag.
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InvokeScript Overloaded. Executes an Active Scripting function defined in an HTML page.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OpenNew Gets a new HtmlDocument to use with the Write method.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write Writes a new HTML page.