Category / Section
How to get the height of the rendered document in WinForms HTMLUIControl?
1 min read
Height
The height of the rendered document can be accessed using Size property of IHTMLElement. The following code snippet illustrates this.
C#
IHTMLElement elem = this.htmluiControl1.Document.RenderRoot; string height = elem.Size.Height.ToString();
VB
Private elem As IHTMLElement = Me.htmluiControl1.Document.RenderRoot Private height As String = elem.Size.Height.ToString()