HtmlDocument Members
Collapse the table of content
Expand the table of content

HtmlDocument Members

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

The following tables list the members exposed by the HtmlDocument type.

  Name Description
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

(see also Protected Methods )
  Name Description
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 Overloaded. Overridden.  
Public method ExecCommand Executes the specified command against the document.
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 Overridden.  
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.
Public method Static op_Equality  
Public method Static op_Inequality  
Public method OpenNew Gets a new HtmlDocument to use with the Write method.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Write Writes a new HTML page.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
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

Community Additions

ADD
Show:
© 2016 Microsoft