插入文本
希沃白板团队
# 插入文本
# 方法原型
void InsertText(InsertTextModel model);
# 参数
interface InsertTextModel {
text: string;
font-size: number;
font-family: string;
color: string;
top: number;
left: number;
}
# 调用示例
window.external.InvokeMethod(JSON.stringify({ "method": "InsertText", "args": JSON.stringify({ "text": "示例文字", "font-size": 24, "font-family": "Microsoft YaHei", "color": "#FFFFFF", "top": 100, "left": 100 })}))