Please provide some background information about how and where to use this code, maybe a example project.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@H35am Thanks for letting us know; this content set is in our backlog to update. @John-Hart, FYI.
Example would be great. This is quite hard to understand without example source.
I also think a real example, that works, is required.
@H35am this is just a code snippet that you could place anywhere in your VSTO VISIO add-in. For example, you could place this code in a button click on a form. A good place to start is looking through the Getting Started Programming VSTO Add-ins document