DocumentBuiltInDocumentProperties Property
Returns a collection that represents all the built-in document properties of the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public BuiltInDocumentProperties BuiltInDocumentProperties { get; }

Property Value

Type: BuiltInDocumentProperties
Examples
Enumerates through all built-in and custom properties in a document.
[C#]

Document doc = new Document(MyDir + "Properties.doc");

Console.WriteLine("1. Document name: {0}", doc.OriginalFileName);

Console.WriteLine("2. Built-in Properties");
foreach (DocumentProperty docProperty in doc.BuiltInDocumentProperties)
    Console.WriteLine("{0} : {1}", docProperty.Name, docProperty.Value);

Console.WriteLine("3. Custom Properties");
foreach (DocumentProperty docProperty in doc.CustomDocumentProperties)
    Console.WriteLine("{0} : {1}", docProperty.Name, docProperty.Value);
See Also