Get Text Portion Properties

Introduction

Aspose.Slides Cloud API allows you to read, add, modify and delete text portions from PowerPoint presentation slides. Use the following methods to get properties of text portions.

GetPortions

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions GET Returns information about text portions within a paragraph in a shape located in a presentation saved in a storage. GetPortions

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.
paragraphIndex integer path true The 1-based index of a paragraph.
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.
subShape string query false The path to a child shape (e.g. “3”, “3/shapes/2”).

GetPortion

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex} GET Returns information about a text portion within a paragraph in a shape located in a presentation saved in a storage. GetPortion

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.
paragraphIndex integer path true The 1-based index of a paragraph.
portionIndex integer path true The 1-based index of a text portion.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
storage string query false The name of the storage contaning the folder.
subShape string query false The path to a child shape (e.g. “3”, “3/shapes/2”).

Examples

The document MyPresentation.pptx saved in the default storage contains two text boxes on the first slide. The second text box contains three paragraphs. Get properties of the second text portion within the third paragraph.

Slide

cURL Solution

SDK Solutions

SDKs

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