在 Word 2010 插件中存储功能区控件状态的位置

发布于 2024-10-05 06:00:10 字数 133 浏览 1 评论 0原文

我正在使用 Visual Studio 2010 创建带有自定义功能区的 Word 2010 插件。它上面有各种复选框和编辑框。文档关闭时,在哪里存储复选框的状态和编辑框中的值?是否使用现有文档属性并自己对其进行反/序列化?或者Word 有其他机制吗?

I'm using Visual Studio 2010 to create a Word 2010 addin with a custom ribbon. It has various checkboxes and editboxes on it. Where do I store the state of the checkboxes and the values in the editboxes when the document is closed? Do a use an exiting document property and de/serialize it myself? Or does Word have another mechanism for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷情妓 2024-10-12 06:00:10

您可以使用文档属性,或者您可以考虑自定义 XML 部件,它本质上是一个包含您喜欢的任何 XML 的 XML 文档,它作为一个部件包含在 docx 中。

You could use document properties, or you might consider a Custom XML Part, which is essentially an XML document containing whatever XML you like, which is included in the docx as a part.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文