HtmlElement.Document Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the HtmlDocument to which this element belongs.

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

public HtmlDocument Document { 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: