Skip to content

Latest commit

 

History

12,476 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aspose.Slides for .NET Examples (V26.9.0)

AI-friendly repository containing validated C# examples for Aspose.Slides for .NET API.

Overview

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.

Repository Structure

Examples are organized by feature category:

  • 3d-presentations/ - 29 example(s)
  • animations/ - 34 example(s)
  • comments-and-notes/ - 118 example(s)
  • conversion/ - 376 example(s)
  • design-presentations/ - 157 example(s)
  • manage-presentation/ - 64 example(s)
  • manage-presentation-content/ - 98 example(s)
  • manage-presentation-media-files/ - 144 example(s)
  • manage-presentation-text/ - 102 example(s)
  • manage-tags-and-custom-data/ - 35 example(s)
  • math-equations/ - 29 example(s)
  • presentation-ink-objects/ - 30 example(s)
  • secure-presentations/ - 28 example(s)
  • vba-macros/ - 33 example(s)
  • working-with-charts/ - 429 example(s)
  • working-with-shapes/ - 202 example(s)
  • working-with-slides/ - 118 example(s)
  • working-with-smartart/ - 113 example(s)
  • working-with-tables/ - 29 example(s)

Each category contains standalone .cs files that can be compiled and run independently.

Getting Started

Prerequisites

  • .NET SDK (net10.0 or compatible version)
  • Aspose.Slides for .NET NuGet package
  • Valid Aspose license (for production use)

Running Examples

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

Code Patterns

Loading a Presentation

using (Presentation pres = new Presentation("input.pptx"))
{
    // Work with presentation
}

Error Handling

if (!File.Exists(inputPath))
{
    Console.Error.WriteLine($"Error: File not found – {inputPath}");
    return;
}

try
{
    // Operations
}
catch (Exception ex)
{
    Console.Error.WriteLine($"Error: {ex.Message}");
}

Contributing

Examples in this repository are automatically generated.

Related Resources

License

All examples require a valid Aspose license for production use.


This repository is maintained by automated code generation.

Releases

Packages

Used by

Contributors

Languages