JAVASCRIPT代码:
var rel = htmleditor.document.selection.createRange();
alert(rel.text);C#代码:
mshtml.IHTMLTxtRange rel = (mshtml.IHTMLTxtRange) htmleditor.Document.selection.createRange();
MessageBox.Show(rel.Text);
编译通过,但运行时提示“转换无效”......微软支持网站只有VB.NET的帮助,没有C#的,是否C#没有此属性?急!!!请高手帮忙
var rel = htmleditor.document.selection.createRange();
alert(rel.text);C#代码:
mshtml.IHTMLTxtRange rel = (mshtml.IHTMLTxtRange) htmleditor.Document.selection.createRange();
MessageBox.Show(rel.Text);
编译通过,但运行时提示“转换无效”......微软支持网站只有VB.NET的帮助,没有C#的,是否C#没有此属性?急!!!请高手帮忙
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货