我正在尝试寻找一种方法,使用 PowerPoint JS API 以不同颜色突出显示 PowerPoint 演示文稿中的选定范围或绑定,但没有找到任何内容。有谁知道这是否可以通过 PowerPoint API 实现。作为参考,我正在尝试做这样的事情,但用 powerpoint.run 代替:
Word.run(function (context) {
// Create a proxy object for the document body.
var body = context.document.body;
// Queue a commmand to clear the contents of the body.
body.load("font");
return context.sync().then(function () {
// Queue a set of commands to change the font for each found item.
body.font.color = 'black';
body.font.underline = 'turquoise';
return context.sync();
})
.catch(errorHandler);
});
答案 0 :(得分:0)
抱歉,Office JavaScript 库在 PowerPoint 中尚不支持细粒度格式设置。