Interface IMasterSlide
Represents the master slide in a presentation.
Inherited Members
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.UWP.dll
Syntax
public interface IMasterSlide : IBaseSlide
Properties
LayoutSlides
Gets the ILayoutSlides collection of a IMasterSlide instance. Read-only.
Declaration
ILayoutSlides LayoutSlides { get; }
Property Value
Type |
---|
ILayoutSlides |
Examples
//Create a new presentation.
IPresentation presentation = Presentation.Create();
//Add slide to the presentation
ISlide slide = presentation.Slides.Add(SlideLayoutType.Title);
//Gets the first master slide.
IMasterSlide masterSlide = presentation.Masters[0];
//Retrieve the collection of layout Slide
ILayoutSlides layoutSlides = masterSlide.LayoutSlides;
int count = layoutSlides.Count;
//Save the presentation
presentation.Save("Sample.pptx");
//Close the presentation
presentation.Close();
'Create a new presentation.
Dim presentation As Presentation = Presentation.Create()
'Add the slide into the presentation
Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Title)
'Gets the first master slide.
Dim masterSlide As IMasterSlide = presentation.Masters(0)
'Retrieve the collection of layout Slide
Dim layoutSlides As ILayoutSlides = masterSlide.LayoutSlides
'Gets the layout slides count.
Dim count As Integer = layoutSlides.Count
'Saves the Presentation.
presentation.Save("Sample.pptx")
'Close the presentation.
presentation.Close()