开发者

Where to store the state of ribbon controls in a Word 2010 addin

开发者 https://www.devze.com 2023-01-27 22:00 出处:网络
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 editboxe

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 d开发者_StackOverflowocument property and de/serialize it myself? Or does Word have another mechanism for this?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消