DocumentCustomDocumentProperties Property
Returns a collection that represents all the custom document properties of the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 20.1
public CustomDocumentProperties CustomDocumentProperties { get; }

Property Value

Type: CustomDocumentProperties
Enumerates through all built-in and custom properties in a document.
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