HtmlElement.Document Property


Gets the HtmlDocument to which this element belongs.

 property System::Windows::Forms::HtmlDocument ^ Document { System::Windows::Forms::HtmlDocument ^ get(); };
public System.Windows.Forms.HtmlDocument Document { get; }
public System.Windows.Forms.HtmlDocument? Document { get; }
member this.Document : System.Windows.Forms.HtmlDocument
Public ReadOnly Property Document As HtmlDocument

Property Value

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.

Applies to

See also