演示(PPT) 标签(Tags) 获取标签对象Item() 方法出错

Viewed 56

参考接口 https://solution.wps.cn/docs/client/api/PPT/Tags.html#item <img src="https://solution-community.wps.cn/uploads/post/4XdBms8Hngf.png" alt="image.png"/>

参数要求与参考文档不一致, 用字符格式取不到内容。

实际应用 <img src="https://solution-community.wps.cn/uploads/post/4XdBgXisdT3.png" alt="image.png"/>

1 Answers

你好,这里有文档错误,实际使用方法如下

await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Item({ Name: "test" });

其中的Name值与Add中Name的值一致

await app.ActivePresentation.SlideShowWindow.View.Slide.Tags.Add({Name: 'test', Value: '123'})