Edit

Share via


HtmlElement.Document Property

Definition

Gets the HtmlDocument to which this element belongs.

public:
 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.

Remarks

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