This documentation is archived and is not being maintained.

HtmlDocument Members

Provides top-level programmatic access to an HTML document hosted by the WebBrowser control.

The HtmlDocument type exposes the following members.

  NameDescription
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.
Top

  NameDescription
Public operator Static member Equality Returns a value that indicates whether the specified HtmlDocument instances represent the same value.
Public operator Static member Inequality Returns a value that indicates whether the specified HtmlDocument instances do not represent the same value.
Top

  NameDescription
Public property ActiveElement Provides the HtmlElement which currently has user input focus.
Public property ActiveLinkColor Gets or sets the Color of a hyperlink when clicked by a user.
Public property All Gets an instance of HtmlElementCollection, which stores all HtmlElement objects for the document.
Public property BackColor Gets or sets the background color of the HTML document.
Public property Body Gets the HtmlElement for the BODY tag.
Public property Cookie Gets or sets the HTTP cookies associated with this document.
Public property DefaultEncoding Gets the encoding used by default for the current document.
Public property Domain Gets or sets the string describing the domain of this document for security purposes.
Public property DomDocument Gets the unmanaged interface pointer for this HtmlDocument.
Public property Encoding Gets or sets the character encoding for this document.
Public property Focused Gets a value indicating whether the document has user input focus.
Public property ForeColor Gets or sets the text color for the document.
Public property Forms Gets a collection of all of the <FORM> elements in the document.
Public property Images Gets a collection of all image tags in the document.
Public property LinkColor Gets or sets the color of hyperlinks.
Public property Links Gets a list of all the hyperlinks within this HTML document.
Public property RightToLeft Gets or sets the direction of text in the current document.
Public property Title Gets or sets the text value of the <TITLE> tag in the current HTML document.
Public property Url Gets the URL describing the location of this document.
Public property VisitedLinkColor Gets or sets the Color of links to HTML pages that the user has already visited.
Public property Window Gets the HtmlWindow associated with this document.
Top

  NameDescription
Public event Click Occurs when the user clicks anywhere on the document.
Public event ContextMenuShowing Occurs when the user requests to display the document's context menu.
Public event Focusing Occurs before focus is given to the document.
Public event LosingFocus Occurs while focus is leaving a control.
Public event MouseDown Occurs when the user clicks the left mouse button.
Public event MouseLeave Occurs when the mouse is no longer hovering over the document.
Public event MouseMove Occurs when the mouse is moved over the document.
Public event MouseOver Occurs when the mouse is moved over the document.
Public event MouseUp Occurs when the user releases the left mouse button.
Public event Stop Occurs when navigation to another Web page is halted.
Top
Show: