PowerPoint) (Master 对象

代表一个幻灯片母版、标题母版、讲义母版、备注母版或设计母版。

示例

若要返回 Master 对象,请使用 Slide 对象或 SlideRange 集合的 Master属性,或使用 Presentation 对象的 HandoutMasterNotesMasterSlideMasterTitleMaster属性。 请注意,其中的一些属性还可从 设计 对象也。 下面的示例设置活动演示文稿的幻灯片母版的背景填充。

ActivePresentation.SlideMaster.Background.Fill _

    .PresetGradient msoGradientHorizontal, 1, msoGradientBrass

若要向演示文稿添加标题母版或设计并返回表示新标题母版或设计的 Master 对象,请使用 AddTitleMaster方法。 下面的示例在当前演示文稿添加一个标题母版,并将标题占位符放置距母版顶部 10 磅的位置。

ActivePresentation.AddTitleMaster.Shapes.Title.Top = 10

方法

名称
ApplyTheme
删除

属性

名称
Application
Background
BackgroundStyle
ColorScheme
CustomerData
CustomLayouts
设计
Guides
HeadersFooters
Height
Hyperlinks
名称
Parent
Shapes
SlideShowTransition
TextStyles
Theme
TimeLine
Width

另请参阅

PowerPoint 对象模型引用

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。