开发者

How to access the uniqueID property from an HtmlElement?

How can I access the uniqueID property from an HtmlElement?

I know how to cast from HtmlElement to MSHTML's inte开发者_Go百科rfaces, but I don't know which interface to use.


I figured it out:

mshtml.IHTMLUniqueName id = element.DomElement as mshtml.IHTMLUniqueName;
MessageBox.Show(id.uniqueID);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜