_Document.BuiltInDocumentProperties 属性

定义

返回一个 DocumentProperties 集合,该集合代表指定文档的所有内置文档属性。Returns a DocumentProperties collection that represents all the built-in document properties for the specified document.

public:
 property System::Object ^ BuiltInDocumentProperties { System::Object ^ get(); };
public object BuiltInDocumentProperties { get; }
member this.BuiltInDocumentProperties : obj
Public ReadOnly Property BuiltInDocumentProperties As Object

属性值

Object

注解

若要返回 DocumentProperty 代表特定内置文档属性的单个对象,请使用BuiltinDocumentPropertiesindex ),其中 index 是一个 WdBuiltInProperty 常量。To return a single DocumentProperty object that represents a specific built-in document property, use BuiltinDocumentProperties(index), where index is a WdBuiltInProperty constant.

如果 Microsoft Word 没有定义某个内置文档属性的值,则读取该文档属性的 Value 属性将产生错误。If Microsoft Word doesn't define a value for one of the built-in document properties, reading the Value property for that document property generates an error.

使用 CustomDocumentProperties 属性返回自定义文档属性的集合。Use the CustomDocumentProperties property to return the collection of custom document properties.

适用于