Create a Paragraph

Introduction

In PowerPoint table cells, you can add and change text, change the font, size, color, and style of the text, as well as adjust the alignment within the cells. Use the following method to add text to table cells.

CreateTableCellParagraph

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs POST Adds a new paragraph to a table cell in a presentation saved in a storage. CreateTableCellParagraph

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).
rowIndex integer path true The 1-based index of a row.
cellIndex integer path true The 1-based index of a cell.
dto Paragraph body true The data transfer object with paragraph properties.
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 normal and bold text to the cell (2, 2). Set the default font height for cell text to 12.

The table

cURL Solution

SDK Solutions

The result:

The table

SDKs

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