跳到主要内容

PasteHtml

将 HTML 格式的文本粘贴到文档中。

语法

expression.PasteHtml(htmlText);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
htmlText必需string指定要粘贴到文档中的 HTML 格式文本的字符串值。

返回值

此方法不返回任何数据。

示例

window.Asc.plugin.executeMethod ("PasteHtml", ["<p><b>Plugin methods for OLE objects</b></p><ul><li>AddOleObject</li><li>EditOleObject</li></ul>"]);