Compartir a través de


Work with tables

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The topics in this section provide step-by-step procedures and code examples for using the object model of Microsoft Office Word to work with tables in Office projects. In some cases, the ways that you perform these tasks in VSTO Add-ins is different from the ways that you perform them in document-level customizations.

Task Procedure
Create a table, apply a style, and access the table in code. How to: Programmatically create Word tables
Create a table, format it, and insert data into the cells. How to: Programmatically populate Word tables with document properties
Add a row or column to a table. How to: Programmatically add rows and columns to Word tables
Add text to a cell and format it. How to: Programmatically add text and formatting to cells in Word tables

See also