SlideBase.ActualNotesPlaceholder Property
Obtains the note placeholder shape.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.2.dll
NuGet Package: DevExpress.Docs.Presentation
Declaration
Property Value
| Type | Description |
|---|---|
| Shape | The note placeholder shape. |
Example
How to: Change Note Master Layout Settings
The following code snippet changes note master layout settings:
using DevExpress.Docs;
using DevExpress.Docs.Presentation;
using System.Drawing;
//...
using (var presentation = new Presentation(File.ReadAllBytes (@"C:\Documents\Presentation.pptx")))
{
var notesMaster = presentation.NotesMaster;
// Specify header, footer, and date and time:
notesMaster.ActualHeaderPlaceholder.TextArea.Text = "DevExpress Test Presentation";
notesMaster.ActualFooterPlaceholder.TextArea.Text = "Created by DevExpress Presentation API";
notesMaster.ActualDateTimePlaceholder.TextArea.Text = DateTime.Now.ToString();
// Change notes master background:
SolidFill fill = new SolidFill(Color.LightCyan);
notesMaster.Background = new CustomSlideBackground(fill);
// Change default text formatting settings:
ParagraphProperties pp = new ParagraphProperties();
pp.TextProperties = new TextProperties() { HighlightColor = new OfficeColor(Color.Red) };
notesMaster.TextStyle.ParagraphProperties = pp;
notesMaster.TextStyle.Level1ParagraphProperties = pp;
presentation.SaveDocument(new FileStream("C://Documents//presentation-updated.pptx", FileMode.OpenOrCreate, FileAccess.ReadWrite));
}
See Also