Update a Table Cell

Introduction

Aspose.Slides Cloud API provides a wide range of features for formatting table cells. You can change the background color of cells. Additionally, cell borders can be formatted: you can change their color, thickness, and style, such as using solid, dashed, or dotted lines. Moreover, you can align text within cells to the left, right, center, or justify it. You can change the font, its size, color, and style (for example, making the text bold, italic, or underlined). The API also supports setting internal padding for text within cells. Additionally, you can apply various styles and effects, such as shadows, 3D effects, and gradients, to visually highlight specific elements of the table. Use the following method to format table cells.

UpdateTableCell

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex} PUT Updates a table cell in a presentation saved in a storage. UpdateTableCell

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 the cell in the row.
dto TableCell body true The data transfer object with cell parameters.
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 second shape) on the first slide. For cell (1,1) set the text to “ID” and the fill color to #ED7D31.

The table

cURL Solution

SDK Solutions

The result:

The table

SDKs

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