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/- 391 example(s)design-presentations/- 157 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/- 291 example(s)working-with-shapes/- 208 example(s)working-with-slides/- 120 example(s)working-with-smartart/- 117 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 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.