Skip to main content
All docs
V25.2
  • SlideBase.ActualSlideNumberPlaceholder Property

    Obtains the slide number shape.

    Namespace: DevExpress.Docs.Presentation

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

    NuGet Package: DevExpress.Docs.Presentation

    Declaration

    public Shape ActualSlideNumberPlaceholder { get; }

    Property Value

    Type Description
    Shape

    The slide number 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