1
我在C#中使用mshtml COM组件来获取当前Internet Explorer中的DOM元素信息。 我的代码看起来是这样的:如何在IE中使用C获得文档的scrollHeight属性#
HTMLDocument document =....;
var offsetHeight = document.body.offsetHeight;// works fine
var scrollHeight = document.body.scrollHeight;//compiler error
类型HTMLDocument的来自Microsoft.mshtml.dll COM组件。 为什么可以通过javascript访问的DOM元素的scrollHeight属性不能被C#访问?如何获得另一个.Net应用程序正在运行的IE进程的滚动条状态?