AI-friendly repository containing validated C# examples for Aspose.Slides for .NET API.
This repository provides working code examples demonstrating Aspose.Slides for .NET capabilities. All examples are automatically generated, compiled, and validated using the Aspose.Slides Examples Generator.
Examples are organized by feature category:
-
3d-presentations/- 30 example(s) -
animations/- 34 example(s) -
comments-and-notes/- 120 example(s) -
conversion/- 397 example(s) -
design-presentations/- 161 example(s) -
manage-presentation/- 64 example(s) -
manage-presentation-content/- 101 example(s) -
manage-presentation-media-files/- 149 example(s) -
manage-presentation-text/- 104 example(s) -
manage-tags-and-custom-data/- 40 example(s) -
math-equations/- 29 example(s) -
presentation-ink-objects/- 35 example(s) -
secure-presentations/- 29 example(s) -
vba-macros/- 34 example(s) -
working-with-charts/- 463 example(s) -
working-with-shapes/- 208 example(s) -
working-with-slides/- 123 example(s) -
working-with-smartart/- 121 example(s) -
working-with-tables/- 31 example(s)
Each category contains standalone .cs files that can be compiled and run independently.
-
.NET SDK (net10.0 or compatible version)
-
Aspose.Slides for .NET NuGet package
-
Valid Aspose license (for production use)
Each example is a self-contained C# file. To run an example:
cd <CategoryFolder>
dotnet new console -o ExampleProject
cd ExampleProject
dotnet add package Aspose.Slides
# Copy the example .cs file as Program.cs
dotnet run
using (Presentation pres = new Presentation("input.pptx"))
{
// Work with presentation
}
if (!File.Exists(inputPath))
{
Console.Error.WriteLine($"Error: File not found – {inputPath}");
return;
}
try
{
// Operations
}
catch (Exception ex)
{
Console.Error.WriteLine($"Error: {ex.Message}");
}
Examples in this repository are automatically generated.
All examples require a valid Aspose license for production use.
This repository is maintained by automated code generation.
This repository contains build-validated C# examples for automating Microsoft PowerPoint and OpenDocument presentations with Aspose.Slides for .NET. Developers can find examples for PPTX creation, presentation conversion, slide manipulation, chart generation, animation, SmartArt, tables, text formatting, media extraction, security, VBA macros, comments, notes, and document metadata.
| Capability | Examples | Common developer search targets |
| --- | ---: | --- |
| 3d-presentations | 30 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| animations | 34 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| comments-and-notes | 120 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| conversion | 397 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| design-presentations | 161 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| manage-presentation | 64 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| manage-presentation-content | 101 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| manage-presentation-media-files | 149 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| manage-presentation-text | 104 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| manage-tags-and-custom-data | 40 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| math-equations | 29 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| presentation-ink-objects | 35 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| secure-presentations | 29 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| vba-macros | 34 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| working-with-charts | 463 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| working-with-shapes | 208 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| working-with-slides | 123 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| working-with-smartart | 121 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
| working-with-tables | 31 | PPTX, PDF, HTML, images, charts, shapes, slides, text, media |
-
Batch convert PPTX decks to PDF, HTML, images, or archival formats.
-
Generate reporting presentations with charts, tables, formatted text, and branded layouts.
-
Extract media, comments, notes, metadata, and custom tags from existing presentations.
-
Secure, inspect, repair, or validate presentation files in backend .NET workflows.
Generated for SEO/GEO indexing on 2026-06-22. Total examples: 2273. Categories: 19.
These answers target high-intent developer searches for C#, .NET, PowerPoint automation, PPTX conversion, presentation editing, and agentic code retrieval.
Use chart examples to add chart shapes, access Aspose.Slides.Charts.IChart, update chart data, format series, configure axes, and save the presentation. See working-with-charts for related examples.
Use animation examples to work with slide timelines, animation sequences, effect types, triggers, and animated shapes through Aspose.Slides APIs. See working-with-charts for related examples.
Use the working-with-charts examples to find standalone C# patterns for working with charts. Each example shows how to load or create an Aspose.Slides.Presentation, apply the operation, and save output with the correct Aspose.Slides API. See working-with-charts for related examples.
Start with the files listed in this directory and the category AGENTS.md. The strongest search terms for this category are: chart, csset, csadd, data, csexport. See working-with-charts for related examples.
Yes. The examples are generated as standalone console-style C# files and are intended to compile and run independently in .NET workflows. See working-with-charts for related examples.
Use the conversion and export examples to load a Presentation, configure format-specific options when needed, and call presentation.Save(...) or slide image APIs with the correct Aspose.Slides.Export.SaveFormat. See conversion for related examples.
Use slide management examples to work with ISlide, slide collections, layouts, masters, and sections while preserving presentation structure. See conversion for related examples.
Use the conversion examples to find standalone C# patterns for conversion. Each example shows how to load or create an Aspose.Slides.Presentation, apply the operation, and save output with the correct Aspose.Slides API. See conversion for related examples.
Start with the files listed in this directory and the category AGENTS.md. The strongest search terms for this category are: pptx, swf, pdf, ppt, with. See conversion for related examples.
Yes. The examples are generated as standalone console-style C# files and are intended to compile and run independently in .NET workflows. See conversion for related examples.