PowerPointSlideMaster
OfficeIMO.PowerPoint
A slide master: the shapes, placeholders, background and theme shared by its layouts and their slides.
Inheritance
- PowerPointMasterSurface
- PowerPointSlideMaster
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.
Returned or exposed by 4
- Method PowerPointDocument.AddSlideMaster
- Property PowerPointDocument.SlideMasters
- Property PowerPointSlideLayout.Master
- Method PowerPointSlideMaster.Duplicate
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
- layoutType OfficeIMO.PowerPoint.PowerPointSlideLayoutType = Custom
Returns
PowerPointSlideLayoutpublic 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
Returns
PowerPointSlideMasterpublic PowerPointSlideLayout? GetLayout(string name, bool ignoreCase = true) #Returns the first layout with the given name, or null.
Parameters
- name string
- ignoreCase bool = true
Returns
PowerPointSlideLayout?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.
Inherited Methods
public PowerPointImage AddImage(string imagePath, OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height) #Parameters
- imagePath string
- left OfficeLength
- top OfficeLength
- width OfficeLength
- height OfficeLength
Returns
PowerPointImagepublic PowerPointImage AddImage(Stream image, OfficeImageFormat imageType, OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height) #Parameters
- image Stream
- imageType OfficeImageFormat
- left OfficeLength
- top OfficeLength
- width OfficeLength
- height OfficeLength
Returns
PowerPointImagepublic PowerPointTextBox AddPlaceholder(PowerPointPlaceholderType placeholderType, PowerPointLayoutBox bounds, uint? index = null, string? name = null) #Parameters
- placeholderType PowerPointPlaceholderType
- bounds PowerPointLayoutBox
- index uint? = null
- name string? = null
Returns
PowerPointTextBoxpublic PowerPointAutoShape AddShape(OfficePresetShapeType shapeType, OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height, string? name = null) #Parameters
- shapeType OfficePresetShapeType
- left OfficeLength
- top OfficeLength
- width OfficeLength
- height OfficeLength
- name string? = null
Returns
PowerPointAutoShapepublic PowerPointTextBox AddTextBox(string text, OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height) #Parameters
- text string
- left OfficeLength
- top OfficeLength
- width OfficeLength
- height OfficeLength
Returns
PowerPointTextBoxpublic PowerPointTextBox? GetPlaceholder(PowerPointPlaceholderType placeholderType, uint? index = null) #Parameters
- placeholderType PowerPointPlaceholderType
- index uint? = null
Returns
PowerPointTextBox?public void SetBackgroundImage(string imagePath) #Parameters
- imagePath string
public void SetBackgroundImage(Stream image, OfficeImageFormat imageType) #Parameters
- image Stream
- imageType OfficeImageFormat
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.
Inherited Properties
public string Name { get; set; } #public IReadOnlyList<PowerPointShape> Shapes { get; } #public IReadOnlyList<PowerPointTextBox> Placeholders { get; } #public OfficeColor? BackgroundColor { get; set; } #