NotesSlide — Aspose.Slides FOSS for .NET API Reference
The NotesSlide class represents the speaker notes page attached to a slide. Access it via Slide.NotesSlideManager.
Package: Aspose.Slides.Foss (net9.0)
using Aspose.Slides.Foss;public class NotesSlide : BaseSlide, INotesSlideInheritance
BaseSlide → NotesSlide
Properties
| Property | Type | Access | Description |
|---|---|---|---|
NotesTextFrame | ITextFrame | Read | Text frame containing the notes text. |
ParentSlide | ISlide | Read | The slide this notes page belongs to. |
HeaderFooterManager | INotesSlideHeaderFooterManager | Read | Header/footer manager for the notes page. |
Shapes | IShapeCollection? | Read | Shapes on the notes page (inherited from BaseSlide). |
NotesSlideManager
The NotesSlideManager is accessed via Slide.NotesSlideManager and provides methods to create or remove the notes slide.
public class NotesSlideManager : INotesSlideManagerProperties
| Property | Type | Access | Description |
|---|---|---|---|
NotesSlide | INotesSlide? | Read | The notes slide, or null if none exists. |
Methods
| Method | Returns | Description |
|---|---|---|
AddNotesSlide() | INotesSlide | Create a notes slide for the parent slide. |
RemoveNotesSlide() | void | Remove the notes slide. |
Usage Examples
Add Speaker Notes
using Aspose.Slides.Foss;
using Aspose.Slides.Foss.Export;
using var prs = new Presentation();
var slide = prs.Slides[0];
var notes = slide.NotesSlideManager.AddNotesSlide();
notes.NotesTextFrame.Text = "Remember to mention the quarterly targets.";
prs.Save("with-notes.pptx", SaveFormat.Pptx);Read Speaker Notes
using Aspose.Slides.Foss;
using var prs = new Presentation("with-notes.pptx");
foreach (var slide in prs.Slides)
{
var notes = slide.NotesSlideManager.NotesSlide;
if (notes != null)
{
Console.WriteLine($"Slide {slide.SlideNumber}: {notes.NotesTextFrame.Text}");
}
}