Search code examples
c#powerpointvstometadataoffice-interop

How to store data in PowerPoint shape?


I'm developing PowerPoint Add-in using office interop in VSTO (C#), I want to store some data in the shapes. How can I do it? P.S: I found some docs about metadata but I didn't find a way to implement it.


Solution

  • For small amounts of data, Tags may do the trick. Here is Microsoft's page about the Tag object: Tags object (PowerPoint)

    For larger amounts of data a custom XML part may work. Custom XML parts overview