Slides.AddSlide Method
Creates a new slide, adds it to the Slides collection, and returns the slide.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function AddSlide ( _
Index As Integer, _
pCustomLayout As CustomLayout _
) As Slide
'Usage
Dim instance As Slides
Dim Index As Integer
Dim pCustomLayout As CustomLayout
Dim returnValue As Slide
returnValue = instance.AddSlide(Index, _
pCustomLayout)
Slide AddSlide(
int Index,
CustomLayout pCustomLayout
)
Parameters
- Index
Type: System.Int32
The index of the slide to be added.
- pCustomLayout
Type: Microsoft.Office.Interop.PowerPoint.CustomLayout
The layout of the slide.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Slide