Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointSlideMaster

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

A slide master: the shapes, placeholders, background and theme shared by its layouts and their slides.

Inheritance

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public PowerPointSlideLayout AddLayout(string name, PowerPointSlideLayoutType layoutType = Custom) #

Adds an empty custom layout at the end of this master's layout list. It shows the master's shapes and background; add placeholders and shapes to design it.

Parameters

name string required
layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType = Custom optional
public PowerPointSlideMaster Duplicate(string? name = null) #

Copies this master, its theme and all its layouts into a new master at the end of the presentation.

Parameters

name string? = null optional
public PowerPointSlideLayout? GetLayout(string name, bool ignoreCase = true) #

Returns the first layout with the given name, or null.

Parameters

name string required
ignoreCase bool = true optional
public void Remove() #

Removes the master and its layouts. The presentation keeps at least one master, and a master whose layouts are still used by slides cannot be removed; move those slides to another layout first.

Properties

public int Index { get; } #

Zero-based position of the master in the presentation.

public IReadOnlyList<PowerPointSlideLayout> Layouts { get; } #

Layouts owned by this master; positions match the layout indexes used by PowerPointSlide.SetLayout.