Working With SmartArt Text

Introduction

You can manage text within a SmartArt node the same way as it works for sub-shapes. Instead of the path to the sub-shape, the path to the sub-node must be specified. The sub-node path is a string that contains node index (e.g., “1”) or a path in case of more than one level of grouping( e.g. “1/nodes/1”).

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs GET Read shape paragraphs info GetParagraphs
/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs POST Creates new paragraph CreateParagraph
/slides/{name}/slides/{slideIndex}/shapes/{path}/{shapeIndex}/paragraphs DELETE Remove a range of paragraps DeleteParagraphs
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} GET Read shape paragraph info GetParagraph
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} PUT Update paragraph properties UpdateParagraph
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex} DELETE Remove a paragraph DeleteParagraph
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions GET Read paragraph portions info GetPortions
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions POST Creates new portion CreatePortion
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions DELETE Remove a range of portions DeletePortions
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex} GET Read paragraph portion info GetPortion
​/slides​/{name}​/slides​/{slideIndex}​/shapes​/{shapeIndex}​/paragraphs​/{paragraphIndex}​/portions​/{portionIndex} PUT Update portion properties UpdatePortion
​/slides​/{name}​/slides​/{slideIndex}​/shapes​/{shapeIndex}​/paragraphs​/{paragraphIndex}​/portions​/{portionIndex} DELETE Remove a portion DeletePortion

cURL Example

The code example below shows how to update a text portion in an existing SmartArt object.

SDK Source

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

SDK Examples