如何将VSTO加载项的选项保存在当前打开的文件中? [英] How to save options of a VSTO add-in in the currently open file?

查看:148
本文介绍了如何将VSTO加载项的选项保存在当前打开的文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Powerpoint 2010构建VSTO加载项,并且该加载项设置的选项适用于当前打开的文件,而不是按用户配置。是否可以将这些选项保存在当前文件中(我的意思是将自定义XML添加到.PPTX文件)?如果是这样,怎么办?

I'm building a VSTO add-in for Powerpoint 2010 and the options the add-in sets apply to the currently open file instead of a per-user config. Can I save these options in the current file (I mean, add custom XML to the .PPTX file)? If so, how?

谢谢您的帮助。

推荐答案

如果您的选项不太复杂,我将选择文档自定义属性。以下问题说明了如何在Excel中使用自定义属性,它们在PowerPoint也是如此,因此这应该提供一个很好的起点!

If your Options are not too complex, I would go for Document Custom Properties. The following question illustrates how to use Custom Properties with Excel, they are supported in PowerPoint as well so this should provide a good starting point!

这篇关于如何将VSTO加载项的选项保存在当前打开的文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆