Javascript 是否有任何方法可以使用Office.js突出显示powerpoint演示文稿中的文本

Javascript 是否有任何方法可以使用Office.js突出显示powerpoint演示文稿中的文本,javascript,powerpoint,ms-office,office-js,office-addins,Javascript,Powerpoint,Ms Office,Office Js,Office Addins,我正在尝试使用powerpoint JS API以不同颜色突出显示powerpoint演示文稿中的选定范围或绑定,但没有找到任何方法。有人知道PowerPoint API是否可以做到这一点吗。作为参考,我尝试这样做,但使用powerpoint.run: Word.run(function (context) { // Create a proxy object for the document body. var body = context.do

我正在尝试使用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);
        });

抱歉,Office JavaScript库尚不支持PowerPoint中的细粒度格式