如何滚动System.Windows.Forms.WebBrowser的结束? [英] How to scroll to end of System.Windows.Forms.WebBrowser?

查看:166
本文介绍了如何滚动System.Windows.Forms.WebBrowser的结束?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何可以滚动到System.Windows.Forms.WebBrowser编程?

的结束
解决方案

  ctlWebBrowser.Document.Body.ScrollIntoView(假);
 

有ScrollIntoView()的布尔参数为真,以配合在文档的顶部滚动条,并假对准滚动条与所述文档的底部。

MSDN文档在这里:<一href="http://msdn.microsoft.com/en-us/library/system.windows.forms.htmlelement.scrollintoview.aspx">HtmlElement.ScrollIntoView

How can you scroll to the end of a System.Windows.Forms.WebBrowser programmatically?

解决方案

ctlWebBrowser.Document.Body.ScrollIntoView(false);

The boolean parameter for ScrollIntoView() is true to align the scrollbar with the top of the document, and false to align the scrollbar with the bottom of the document.

MSDN documentation here: HtmlElement.ScrollIntoView

这篇关于如何滚动System.Windows.Forms.WebBrowser的结束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆