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/- 11 example(s)animations/- 19 example(s)comments-and-notes/- 23 example(s)conversion/- 196 example(s)design-presentations/- 126 example(s)manage-presentation/- 89 example(s)manage-presentation-content/- 221 example(s)manage-presentation-media-files/- 167 example(s)manage-presentation-text/- 141 example(s)manage-tags-and-custom-data/- 17 example(s)math-equations/- 34 example(s)vba-macros/- 22 example(s)working-with-charts/- 330 example(s)working-with-shapes/- 162 example(s)working-with-slides/- 110 example(s)working-with-tables/- 109 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 runusing (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.