Split a Table Cell

Introduction

Aspose.Slides Cloud API provides different options for splitting table cells. There are four of them: by width, by height, by column span, and by row span. The last two options can be applied to merged cells. The methods take a required value argument. In the case of splitting by width or height, you have to specify the desired cell width or height accordingly. In the case of splitting by span, the column span or row span value has to be provided.

SplitTableCell

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/{splitType}/{value} POST Splits a table cell in a presentation saved in a storage. SplitTableCell

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.
splitType TableCellSplitType path true The type of splitting.
value number path true The width, height, column span, or row span (depending on the split type).
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) with two columns and two rows on the first slide. Split the cell (1,1) by width. The width of the new cell must be 40 pt.

The table

cURL Solution

cURL Solution

The result:

The table

SDK Source

The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs