Design Object
PowerPoint Developer Reference |
Represents an individual slide design template. The Design object is a member of the Designs and SlideRange collections and the Master and Slide objects.
Remarks
Use the Design property of the Master, Slide, or SlideRange objects to access a Design object, for example:
-
<table>
<thead>
<tr class="header">
<th>Visual Basic for Applications</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml">
ActivePresentation.SlideMaster.Design
-
Visual Basic for Applications ActivePresentation.Slides(1).Design
-
Visual Basic for Applications ActivePresentation.Slides.Range.Design
Use the Add , Item , Clone , or Load methods of the Designs collection to add, refer to, clone, or load a Design object, respectively. For example, to add a design template, use
ActivePresentation.Designs.Add designName:="MyDesign"
Example
The Design object's AddTitleMaster method and HasTitleMaster property can be used to add and / or query the status of a title slide master. For example:
Visual Basic for Applications Sub AddQueryTitleMaster(dsn As Design) dsn.AddTitleMaster MsgBox dsn.HasTitleMaster End Sub
See Also
-