开发者

How to access the uniqueID property from an HtmlElement?

开发者 https://www.devze.com 2023-03-27 21:58 出处:网络
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:

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

精彩评论

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