Update Paragraph Properties

Introduction

This article shows how you can update properties of a paragraph by index in PowerPoint presentations using Aspose.Slides for Cloud API. Using the paragraph settings, you can change the appearance of an entire block of text. These settings include alignments, indents, spacing, etc. Some settings allow you to create bulleted and numbered lists. You can use our REST API with any language: .NET, Java, PHP, Ruby, Python, С++, and much more.

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} PUT Updates properties of a paragraph in a shape. UpdateParagraph

Request Parameters

Name Type Location Required Description
name string path true The presentation file name.
slideIndex integer path true The 1-based index of the presentation slide.
shapeIndex integer path true The 1-based index of the shape.
paragraphIndex integer path true The 1-based index of the paragraph.
dto object body true The data transfer object of the paragraph.
password string header false The password to open the presentation.
folder string query false The folder where the presentation file is located.
storage string query false The storage where the presentation file is located.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.

cURL Example

Update the second paragraph in the first shape on the first slide. Set text alignment to Justify. Set Margin Left to 30pt. Set Space Before to 20pt. The storage name is Main. The folder name is Data.

SDK Source

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

SDK Examples

Update the second paragraph in the first shape on the first slide. Set text alignment to Justify. Set Margin Left to 30pt. Set Space Before to 20pt. The storage name is Main. The folder name is Data.