2022. 4. 29. · In this article. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code. The topics in this section provide step-by-step procedures and code examples for using the object model of Microsoft Office Visio to work with shapes in Office projects. Add shapes from a stencil to a Visio document. Copy shapes from one Visio page and paste.