Articles in this section
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()

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied