BuiltInDocumentProperties 属性

       

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

有关返回集合中单个元素的详细信息,请参阅返回集合中的对象

说明

使用 CustomDocumentProperties 属性返回自定义文档属性的集合。

示例

本示例显示当前演示文稿的所有内置文档属性的名称。

For Each p In Application.ActivePresentation _
        .BuiltInDocumentProperties
    bidpList = bidpList & p.Name & Chr$(13)
Next
MsgBox bidpList

如果演示文稿的作者为“Jake Jarmel”,本示例为该文稿设定内置文档属性“Category”的值。

With Application.ActivePresentation.BuiltInDocumentProperties
    If .Item("author").Value = "Jake Jarmel" Then
        .Item("category").Value = "Creative Writing"
    End If
End With