18 references to Document
System.Windows.Forms (8)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (7)
263
HtmlDocument? htmlDocument =
Document
;
348
HtmlDocument? htmlDocument =
Document
;
380
HtmlDocument? htmlDocument =
Document
;
404
if (
Document
is null)
422
if (
Document
is null)
522
if (
Document
is null)
546
if (
Document
is null)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserEvent.cs (1)
80
HtmlDocument? htmlDocument = _parent.
Document
;
System.Windows.Forms.Tests (10)
System\Windows\Forms\HtmlDocumentTests.cs (2)
1262
HtmlDocument document = control.
Document
;
2383
return control.
Document
;
System\Windows\Forms\HtmlElementTests.cs (1)
3329
return control.
Document
;
System\Windows\Forms\HtmlWindowTests.cs (1)
103
return control.
Document
;
System\Windows\Forms\WebBrowserTests.cs (6)
432
Assert.Null(control.
Document
);
446
Assert.Null(control.
Document
);
469
HtmlDocument document = control.
Document
;
471
Assert.NotSame(document, control.
Document
);
484
Assert.Throws<ObjectDisposedException>(() => control.
Document
);
496
Assert.Throws<InvalidOperationException>(() => control.
Document
);