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, INotesSlide

Inheritance

BaseSlideNotesSlide


Properties

PropertyTypeAccessDescription
NotesTextFrameITextFrameReadText frame containing the notes text.
ParentSlideISlideReadThe slide this notes page belongs to.
HeaderFooterManagerINotesSlideHeaderFooterManagerReadHeader/footer manager for the notes page.
ShapesIShapeCollection?ReadShapes 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 : INotesSlideManager

Properties

PropertyTypeAccessDescription
NotesSlideINotesSlide?ReadThe notes slide, or null if none exists.

Methods

MethodReturnsDescription
AddNotesSlide()INotesSlideCreate a notes slide for the parent slide.
RemoveNotesSlide()voidRemove 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}");
    }
}

See Also