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

Presentation.AddTitleMaster 方法 (PowerPoint)Presentation.AddTitleMaster Method (PowerPoint)

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

指定的演示文稿添加一个标题母版并返回一个表示标题母版的对象。Adds a title master to the specified presentation and returns a Master object that represents the title master.

语法Syntax

表达式AddTitleMasterexpression. AddTitleMaster

表达式_一个表示演示文稿对象的变量。_expression A variable that represents a Presentation object.

返回值Return Value

MasterMaster

注解Remarks

如果演示文稿已有标题母版,则会出错。If the presentation already has a title master, an error occurs.

示例Example

以下示例中,如果当前演示文稿没有标题母版,则为其添加一个标题母版。This example adds a title master to the active presentation if it doesn't already have one.

With Application.ActivePresentation

    If Not .HasTitleMaster Then .AddTitleMaster

End With

另请参阅See also

概念Concepts

演示文稿对象Presentation Object

© 2018 Microsoft