Back to Devexpress

NotesMaster Class

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

latest2.5 KB
Original Source

NotesMaster Class

A notes master is a shared layout that contains visual parameters (location on a slide, text format settings, background, and so on) for headers, footers, and notes in the Notes Page view.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public sealed class NotesMaster :
    MasterElement
vb
Public NotInheritable Class NotesMaster
    Inherits MasterElement

The following members return NotesMaster objects:

Remarks

Create a Notes Master (note master layout) to enable notes in a presentation.

Example

How to: Create a New Notes master

The following code snippet creates a new note master layout with default settings (includes note and slide number placeholders):

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

using (var presentation = new Presentation(File.ReadAllBytes(@"C:\Documents\Presentation.pptx"))) {
    if (presentation.NotesMaster == null) {
        presentation.NotesMaster = new NotesMaster(name: "notesMaster");
    }
}
vb
Imports DevExpress.Docs.Presentation
'...

Using presentation = New Presentation(File.ReadAllBytes("C:\Documents\Presentation.pptx"))
    If presentation.NotesMaster Is Nothing Then
        presentation.NotesMaster = New NotesMaster(name:= "notesMaster")
    End If
End Using

Implements

ICloneable

Inheritance

Object PresentationObject SlideBase MasterElement NotesMaster

See Also

NotesMaster Members

DevExpress.Docs.Presentation Namespace