HtmlWindow::Document Property

 

Gets the HTML document contained within the window.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property HtmlDocument^ Document {
	HtmlDocument^ get();
}

Property Value

Type: System.Windows.Forms::HtmlDocument^

A valid instance of HtmlDocument, if a document is loaded. If this window contains a FRAMESET, or no document is currently loaded, it will return null.

Typically, you will access the Document through the Document property of the WebBrowser control. Use this property when you need to access a document within a FRAME using the Frames collection.

The following code example inspects each document within a page containing frames and creates a table of all of the outgoing hyperlinks from each page for future inspection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: