Add SmartArt to PowerPoint with C# REST API

This article describes how to add SmartArt to PowerPoint with C# REST API. You will learn to automatically insert PowerPoint SmartArt with C# Low Code API using the .NET-based Cloud SDK. Various classes and enumerators are discussed to create different types of SmartArt in the PowerPoint presentation slide.

Prerequisite

Steps to Add PowerPoint Presentation SmartArt with C# REST API

  1. Set the credentials in the SlidesApi object for working with the SmartArt
  2. Upload the source presentation to the Cloud storage for inserting smart graphics
  3. Create graphics data by setting desired properties in the SmartArt object
  4. Insert the SmartArt using the CreateShape() method
  5. Download the updated presentation file after adding SmartArt to it

These steps explain how to work with SmartArt for PowerPoint with C# REST API. Create the SlidesApi class object, upload the source presentation, and create the SmartArt object with the specified settings including position, size, layout, quick style, and color style. Finally, multiple nodes for the SmartArt are added to the respective slide using the CreateShape() method.

Code to Add PowerPoint Smart Shapes with C# .NET-Based API

This code demonstrates how to insert a Smart Art graphic with C# REST Interface in a slide. Use the LayoutEnum to select the desired SmartArt shape from a large list of values including AccentProcess, AccentedPicture, ArrowRibbon, BasicPyramid, and BasicProcess, etc. Similarly, the quick style and color style enumerators have also a variety of options to customize the SmartArt.

This article has taught us how to create the SmartArt in a presentation slide. For adding custom shapes in a presentation, refer to the article on Create Custom Shapes in PowerPoint with C# REST API.

 Indonesian