menu

Document Processing

Interface ILayoutSlide - FileFormats API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ILayoutSlide

    Represents the layout slide in presentation.

    Inherited Members
    IBaseSlide.Background
    IBaseSlide.Charts
    IBaseSlide.Find(Regex)
    IBaseSlide.Find(String, Boolean, Boolean)
    IBaseSlide.FindAll(Regex)
    IBaseSlide.FindAll(String, Boolean, Boolean)
    IBaseSlide.GroupShapes
    IBaseSlide.HeadersFooters
    IBaseSlide.Name
    IBaseSlide.Pictures
    IBaseSlide.Shapes
    IBaseSlide.SlideSize
    IBaseSlide.SlideTransition
    IBaseSlide.Tables
    IBaseSlide.Timeline
    Namespace: Syncfusion.Presentation
    Assembly: Syncfusion.Presentation.Base.dll
    Syntax
    public interface ILayoutSlide : IBaseSlide

    Properties

    LayoutType

    Gets the layout type of the slide. Read-only.

    Declaration
    SlideLayoutType LayoutType { get; }
    Property Value
    Type Description
    SlideLayoutType

    The type of the layout.

    Examples
    //Create a new presentation.
    Presentation presentation = Presentation.Create() as Presentation;
    //Retrieve the collection of layout Slide
    ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides;
    //Create a new instance of layout slide
    ILayoutSlide layoutSlide = layoutSlides[0];
    //Get the layout type of layout slide, read only
    SlideLayoutType slidelayoutType = layoutSlide.LayoutType;
    //Set the fill type of background as solid
    layoutSlide.Background.Fill.FillType = FillType.Solid;
    //Set the color for solid fill
    layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick;
    //Add the layout slide to the collection
    layoutSlides.Add(layoutSlide);
    //Save the presentation
    presentation.Save("Sample.pptx");
    //Close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation)
    'Retrieve the collection of layout Slide
    Dim layoutSlides As ILayoutSlides = presentation__1.LayoutSlides
    'Create a new instance of layout slide
    Dim layoutSlide As ILayoutSlide = layoutSlides(0)
    'Get the layout type of layout slide, read only
    Dim slidelayoutType As SlideLayoutType = layoutSlide.LayoutType
    'Set the fill type of background as solid
    layoutSlide.Background.Fill.FillType = FillType.Solid
    'Set the color for solid fill
    layoutSlide.Background.Fill.SolidFill.Color = ColorObject.Firebrick
    'Add the layout slide to the collection
    layoutSlides.Add(layoutSlide)
    'Save the presentation
    presentation__1.Save("Sample.pptx")
    'Close the presentation
    presentation__1.Close()

    MasterSlide

    Gets the corresponding master slide. Read-only.

    Declaration
    IMasterSlide MasterSlide { get; }
    Property Value
    Type Description
    IMasterSlide

    The master slide.

    Examples
    //Create a new presentation.
    Presentation presentation = Presentation.Create() as Presentation;
    //Retrieve the collection of layout Slide
    ILayoutSlides layoutSlides = presentation.Masters[0].LayoutSlides;
    //Create a new instance of layout slide
    ILayoutSlide layoutSlide = layoutSlides[0];           
    //Add the layout slide to the collection
    layoutSlides.Add(layoutSlide);
    //Get the master slide of the layout slide, read only
    IMasterSlide masterSlide = layoutSlide.MasterSlide;
    //Set the slide orientation of the master slide
    masterSlide.SlideSize.SlideOrientation = SlideOrientation.Portrait;
    //Set the name of the master slide
    masterSlide.Name = "Master Slide";
    //Save the presentation
    presentation.Save("Sample.pptx");
    //Close the presentation
    presentation.Close();
    'Create a new presentation.
    Dim presentation__1 As Presentation = TryCast(Presentation.Create(), Presentation)
    'Retrieve the collection of layout Slide
    Dim layoutSlides As ILayoutSlides = presentation__1.LayoutSlides
    'Create a new instance of layout slide
    Dim layoutSlide As ILayoutSlide = layoutSlides(0)
    'Add the layout slide to the collection
    layoutSlides.Add(layoutSlide)
    'Get the master slide of the layout slide, read only
    Dim masterSlide As IMasterSlide = layoutSlide.MasterSlide
    'Set the slide orientation of the master slide
    masterSlide.SlideSize.SlideOrientation = SlideOrientation.Portrait
    'Set the name of the master slide
    masterSlide.Name = "Master Slide"
    'Save the presentation
    presentation__1.Save("Sample.pptx")
    'Close the presentation
    presentation__1.Close()
    Back to top Generated by DocFX
    OSZAR »
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved
    OSZAR »