Back to Devexpress

NotesSlide Class

officefileapi-devexpress-dot-docs-dot-presentation-4257f667.md

latest2.6 KB
Original Source

NotesSlide Class

A slide note.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public sealed class NotesSlide :
    SlideElement
vb
Public NotInheritable Class NotesSlide
    Inherits SlideElement

The following members return NotesSlide objects:

Remarks

Create a new NotesSlide object and set it as the Slide.Notes property value to add a note to the slide. The new note inherits its visual parameters from the Presentation.NotesMaster object.

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

Implements

ICloneable

Inheritance

Object PresentationObject SlideBase SlideElement NotesSlide

See Also

NotesSlide Members

DevExpress.Docs.Presentation Namespace