System.Windows.Forms.HtmlDocument Members

The members of System.Windows.Forms.HtmlDocument are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
ActiveElementHtmlElement.

Provides the System.Windows.Forms.HtmlElement which currently has user input focus.

ActiveLinkColorSystem.Drawing.Color.

Gets or sets the System.Drawing.Color of a hyperlink when clicked by a user.

[read-only]
AllHtmlElementCollection.

Gets an instance of System.Windows.Forms.HtmlElementCollection, which stores all System.Windows.Forms.HtmlElement objects for the document.

BackColorSystem.Drawing.Color.

Gets or sets the background color of the HTML document.

[read-only]
BodyHtmlElement.

Gets the System.Windows.Forms.HtmlElement for the BODY tag.

Cookiestring.

Gets or sets the HTTP cookies associated with this document.

[read-only]
DefaultEncodingstring.

Gets the encoding used by default for the current document.

Domainstring.

Gets or sets the string describing the domain of this document for security purposes.

[read-only]
DomDocumentobject.

Gets the unmanaged interface pointer for this System.Windows.Forms.HtmlDocument.

Encodingstring.

Gets or sets the character encoding for this document.

[read-only]
Focusedbool.

Gets a value indicating whether the document has user input focus.

ForeColorSystem.Drawing.Color.

Gets or sets the text color for the document.

[read-only]
FormsHtmlElementCollection.

Gets a collection of all of the <FORM> elements in the document.

[read-only]
ImagesHtmlElementCollection.

Gets a collection of all image tags in the document.

LinkColorSystem.Drawing.Color.

Gets or sets the color of hyperlinks.

[read-only]
LinksHtmlElementCollection.

Gets a list of all the hyperlinks within this HTML document.

RightToLeftbool.

Gets or sets the direction of text in the current document.

Titlestring.

Gets or sets the text value of the <TITLE> tag in the current HTML document.

[read-only]
UrlUri.

Gets the URL describing the location of this document.

VisitedLinkColorSystem.Drawing.Color.

Gets or sets the Color of links to HTML pages that the user has already visited.

[read-only]
WindowHtmlWindow.

Gets the System.Windows.Forms.HtmlWindow associated with this document.

Public Methods

AttachEventHandler(string, EventHandler)

Adds an event handler for the named HTML DOM event.

CreateElement(string) : HtmlElement

Creates a new HtmlElement of the specified HTML tag type.

DetachEventHandler(string, EventHandler)

Removes an event handler from a named event on the HTML DOM.

override
Equals(object) : bool

Tests the object for equality against the current object.

ExecCommand(string, bool, object)

Executes the specified command against the document.

Focus()

Sets user input focus on the current document.

GetElementById(string) : HtmlElement

Retrieves a single System.Windows.Forms.HtmlElement using the element's ID attribute as a search key.

GetElementFromPoint(System.Drawing.Point) : HtmlElement

Retrieves the HTML element located at the specified client coordinates.

GetElementsByTagName(string) : HtmlElementCollection

Retrieve a collection of elements with the specified HTML tag.

override
GetHashCode() : int

Retrieves the hash code for this object.

InvokeScript(string) : object

Executes an Active Scripting function defined in an HTML page.

InvokeScript(string, object[]) : object

Executes an Active Scripting function defined in an HTML page.

OpenNew(bool) : HtmlDocument

Gets a new System.Windows.Forms.HtmlDocument to use with the HtmlDocument.Write(string) method.

Write(string)

Writes a new HTML page.

Public Events

Click

Occurs when the user clicks anywhere on the document.

ContextMenuShowing

Occurs when the user requests to display the document's context menu.

Focusing

Occurs before focus is given to the document.

LosingFocus

Occurs while focus is leaving a control.

MouseDown

Occurs when the user clicks the left mouse button.

MouseLeave

Occurs when the mouse is no longer hovering over the document.

MouseMove

Occurs when the mouse is moved over the document.

MouseOver

Occurs when the mouse is moved over the document.

MouseUp

Occurs when the user releases the left mouse button.

Stop

Occurs when navigation to another Web page is halted.

Public Operators

static
Equality(HtmlDocument, HtmlDocument)

Returns a value that indicates whether the specified System.Windows.Forms.HtmlDocument instances represent the same value.

static
Inequality(HtmlDocument, HtmlDocument)

Returns a value that indicates whether the specified System.Windows.Forms.HtmlDocument instances do not represent the same value.