Table of contents
TOC
折叠目录
展开目录

设计对象 (PowerPoint)Design Object (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

代表单个幻灯片设计模板。设计对象是设计SlideRange集合和母版幻灯片对象的成员。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

使用设计主控形状幻灯片,或SlideRange对象属性访问设计的对象,例如:Use the Design property of the Master, Slide, or SlideRange objects to access a Design object, for example:

  • ActivePresentation.SlideMaster.Design

  • ActivePresentation.Slides(1).Design

  • ActivePresentation.Slides.Range.Design

使用在Designs集合添加项目克隆,或加载方法添加,请参考、 复制,或负载的设计对象,分别。例如,若要添加一个设计模板,请使用ActivePresentation.Designs.Add designName:="MyDesign"Use the Add, Item, Clone, or Loadmethods 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

设计对象的AddTitleMaster方法和HasTitleMaster属性可以用于添加和/或查询标题幻灯片母版的状态。例如:The Design object'sAddTitleMastermethod and HasTitleMasterproperty can be used to add and / or query the status of a title slide master. For example:

Sub AddQueryTitleMaster(dsn As Design)

    dsn.AddTitleMaster

    MsgBox dsn.HasTitleMaster

End Sub

另请参阅See also

概念Concepts

PowerPoint 对象模型引用PowerPoint Object Model Reference

© 2018 Microsoft