Document.BuiltInDocumentProperties 屬性

取得 DocumentProperties 集合,表示文件的所有內建文件屬性。

命名空間:  Microsoft.Office.Tools.Word
組件:   Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)
  Microsoft.Office.Tools.Word (在 Microsoft.Office.Tools.Word.dll 中)

語法

'宣告
ReadOnly Property BuiltInDocumentProperties As Object
Object BuiltInDocumentProperties { get; }

屬性值

型別:System.Object
DocumentProperties 集合,表示文件的所有內建文件屬性。

備註

若要傳回代表特定內建文件屬性的單一 DocumentProperty,請使用 Visual Basic 中的 BuiltInDocumentProperties(index) 或 C# 中的 BuiltInDocumentProperties[index],其中 index 是其中一個 WdBuiltInProperty 值。

如果 Microsoft Office Word 未定義其中一個內建文件屬性的值,讀取該文件屬性的 Value 屬性會擲回例外狀況。

使用 CustomDocumentProperties 屬性傳回自訂文件屬性的集合。

.NET Framework 安全性

請參閱

參考

Document 介面

Microsoft.Office.Tools.Word 命名空間