HtmlElement.Document 屬性

定義

明白 HtmlDocument 這個元素所屬的部分。

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

屬性值

此元素的父文件。

備註

有些 HTML 頁面可以使用這些 FRAMESET 標籤來架設框架。 在這種情況下,每個獨立 FRAME 元素都會包含其自身的實例 HtmlDocument。 此特性在你從事件處理 HtmlElementEventArgs程序中收到元素的參考,並需要對該元素所在的文件執行某些動作時最有用。

適用於

另請參閱