Back to Devexpress

Slide.Notes Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-slide.md

latest2.1 KB
Original Source

Slide.Notes Property

Gets or sets the slide notes.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public NotesSlide Notes { get; set; }
vb
Public Property Notes As NotesSlide

Property Value

TypeDescription
NotesSlide

The slide notes.

|

Remarks

For more information, refer to the following help topic: Organize Slide Notes and Notes Layout with DevExpress Presentation API Library.

Example

How to: Add a Note to the First Slide

The following code snippet adds a note to the first slide:

csharp
using DevExpress.Docs.Presentation;
//...

using (var presentation = new Presentation(File.ReadAllBytes(@"C:\Documents\Presentation.pptx"))) {
    Slide slide = presentation.Slides[0];
    slide.Notes = new NotesSlide(presentation.NotesMaster);
    slide.Notes.TextArea.Text = "test note";
}
vb
Imports DevExpress.Docs.Presentation
'...

Using presentation = New Presentation(File.ReadAllBytes("C:\Documents\Presentation.pptx"))
    Dim slide As Slide = presentation.Slides(0)
    slide.Notes = New NotesSlide(presentation.NotesMaster)
    slide.Notes.TextArea.Text = "test note"
End Using

See Also

Slide Class

Slide Members

DevExpress.Docs.Presentation Namespace