Create a Table Row

Introduction

Aspose.Slides Cloud API provides you with the ability to efficiently manage table content in PowerPoint presentations, including creating new rows. Use the following method to insert a row at the specified position or append it to the end of the table.

CreateTableRow

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows POST Adds a row to a table in a presentation saved in a storage. CreateTableRow

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of a slide.
shapeIndex integer path true The 1-based index of a shape (must be a table).
dto TableRow body true The data transfer object with row parameters.
position integer query false The 1-based index of the new row.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation file.
storage string query false The name of the storage contaning the folder.

Examples

In the default storage, the document MyPresentation.pptx contains a table (the first shape) with four columns and three rows on the ninth slide. Add a new row to the end of the table. Set the text for row cells: Cell 1, Cell 2, Cell 3, Cell 4. Set the minimum row height to 30.

The table

cURL Solution

SDK Solutions

The result:

The table

SDKs

Check Available SDKs to learn how to add an SDK to your project.