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