Interface ILayoutSlide
Represents the layout slide in presentation.
Inherited Members
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.UWP.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()