Designs.Add Method
Returns a Design object that represents a new slide design.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Add ( _
designName As String, _
Index As Integer _
) As Design
'Usage
Dim instance As Designs
Dim designName As String
Dim Index As Integer
Dim returnValue As Design
returnValue = instance.Add(designName, _
Index)
Design Add(
string designName,
int Index
)
Parameters
- designName
Type: System.String
The name of the design.
- Index
Type: System.Int32
The index number of the design in the Designs collection. The default value is -1, which means that if you omit the Index parameter, the new slide design is added at the end of existing slide designs.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Design