Presentation.CustomDocumentProperties 属性 (PowerPoint)

返回一个 DocumentProperties 集合,代表指定演示文稿的所有自定义文档属性。 只读。

注意

当用户使用 设计理念 更改演示文稿中幻灯片的外观时,所有自定义文档属性都将丢失。

语法

expressionCustomDocumentProperties

表达 一个代表 Presentation 对象的变量。

返回值

DocumentProperties

备注

使用 BuiltInDocumentProperties 属性返回的内置文档属性的集合。

有关返回集合的单个成员的信息,请参阅 从集合中返回对象

示例

本示例为活动演示文稿添加一个名为"Complete"的静态自定义属性。

Application.ActivePresentation.CustomDocumentProperties _
    .Add Name:="Complete", LinkToContent:=False, _
    Type:=msoPropertyTypeBoolean, Value:=False

如果"完成"自定义属性的值为 True ,则本示例显示当前演示文稿。

With Application.ActivePresentation

    If .CustomDocumentProperties("complete") Then .PrintOut

End With

另请参阅

演示文稿对象

支持和反馈

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