Get a Rectangle of a Text Portion

Introduction

This article shows how to get the coordinates and dimensions of a text portion using Aspose.Slides Cloud.

GetPortionRectangle

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/bounds GET Returns coordinates and dimensions of a text portion from a presentation saved in a storage. GetPortionRectangle

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 file.
storage string query false The name of the storage contaning the folder.

Examples

In the default storage, the document MyPresentation.pptx contains a text box (the first shape) on the first slide. The text box contains a paragraph with three text portions. Get the coordinates and dimensions of the second text portion.

The table

cURL Solution

SDK Solutions

SDKs

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