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進程的滾動條狀態?