PowerPointSlideLayout
OfficeIMO.PowerPoint
A slide layout: the placeholders, shapes and background that slides using it inherit, on top of its master.
Inheritance
- PowerPointMasterSurface
- PowerPointSlideLayout
Usage
Explore 8 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 5
- Property PowerPointSlide.Layout
- Method PowerPointSlideLayout.Duplicate
- Method PowerPointSlideMaster.AddLayout
- Method PowerPointSlideMaster.GetLayout
- Property PowerPointSlideMaster.Layouts
Accepted by parameters 3
- Method PowerPointDocument.AddSlide
- Method PowerPointSlide.SetLayout
- Method PowerPointSlideLayout.Remove
Methods
public PowerPointSlideLayout Duplicate(string? name = null) #Copies this layout, with its shapes, placeholders and pictures, into a new layout of the same master.
Parameters
- name string? = null
Returns
PowerPointSlideLayoutpublic void Remove() #Removes the layout. It must not be used by any slide; use PowerPointSlideLayout.Remove to move those slides first. A master keeps at least one layout.
public void Remove(PowerPointSlideLayout replacement) #Moves every slide using this layout to replacement and then removes this layout. Slide content is kept; placeholders are matched to the replacement's by type and index.
Parameters
- replacement OfficeIMO.PowerPoint.PowerPointSlideLayout
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 PowerPointSlideMaster Master { get; } #The master that owns this layout.
public int Index { get; } #Zero-based position of the layout within its master.
public PowerPointSlideLayoutType? LayoutType { get; } #Native layout type, or null when the layout does not declare one.
public bool ShowMasterShapes { get; set; } #Whether slides using this layout also show the master's shapes.
public IReadOnlyList<PowerPointSlide> Slides { get; } #Slides that use this layout, in presentation order.
Inherited Properties
public string Name { get; set; } #public IReadOnlyList<PowerPointShape> Shapes { get; } #public IReadOnlyList<PowerPointTextBox> Placeholders { get; } #public OfficeColor? BackgroundColor { get; set; } #