简体   繁体   中英

How to get scroll width from web browser control in wpf/windows c#

I am using web browser control in wpf c#. I have render html in web browser control which width have more than windows width. then It's displaying scroll bar. so I need scroll width,or width of html body. if any one have solution please help me. The control can be windows web browser control or WPF web browser control.

ScrollRectangle will get the dimensions of the scrollable region

IEWb.Document.Body.ScrollRectangle.Height;
IEWb.Document.Body.ScrollRectangle.Width;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM