C# 使用带有C的SHDocVw.InternetExplorer对框架中的项进行迭代#
如何使用SHDocVw.InternetExplorer遍历框架内的项目并获取每个字段的属性?尝试以下方法:-C# 使用带有C的SHDocVw.InternetExplorer对框架中的项进行迭代#,c#,C#,如何使用SHDocVw.InternetExplorer遍历框架内的项目并获取每个字段的属性?尝试以下方法:- Dim frmDOC As DispHTMLDocument = CType(CType(HTMLDoc.getElementsByTagName("iframe")(1), SHDocVw.IWebBrowser2).Document, DispHTMLDocument) dim iHTMLCol as IHTMLElementCollection = frmDOC.getElem
Dim frmDOC As DispHTMLDocument = CType(CType(HTMLDoc.getElementsByTagName("iframe")(1), SHDocVw.IWebBrowser2).Document, DispHTMLDocument)
dim iHTMLCol as IHTMLElementCollection = frmDOC.getElementsByTagName("a")
在此之后,可以使用For循环进行IHTMLElementCollection
collection