HtmlElement::Document Property

 

Gets the HtmlDocument to which this element belongs.

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^

The parent document of this element.

Some HTML pages can host frames using the FRAMESET tags. In this case, each individual FRAME element will contain its own instance of HtmlDocument. This property is most useful when you have received a reference to an element in an event handler from the HtmlElementEventArgs, and need to perform some action on the document in which the element resides.

.NET Framework
Available since 2.0
Return to top
Show: