A collection of built-in document properties.
For a list of all members of this type, see BuiltInDocumentProperties Members.
System.Object
Aspose.Words.Properties.DocumentPropertyCollection
Aspose.Words.Properties.BuiltInDocumentProperties
[Visual Basic]Public Class BuiltInDocumentProperties
Remarks
Provides access to DocumentProperty objects by their names (using an indexer) and via a set of typed properties that return values of appropriate types.
The names of the properties are case-insensitive.
The properties in the collection are sorted alphabetically by name.
Example
Enumerates through all built-in and custom properties in a document.
[C#]
string fileName = MyDir + "Properties.doc";
Document doc = new Document(fileName);
Console.WriteLine("1. Document name: {0}", fileName);
Console.WriteLine("2. Buil-in Properties");
foreach (DocumentProperty prop in doc.BuiltInDocumentProperties)
Console.WriteLine("{0} : {1}", prop.Name, prop.Value);
Console.WriteLine("3. Custom Properties");
foreach (DocumentProperty prop in doc.CustomDocumentProperties)
Console.WriteLine("{0} : {1}", prop.Name, prop.Value);[Visual Basic]
Dim fileName As String = MyDir & "Properties.doc"
Dim doc As Document = New Document(fileName)
Console.WriteLine("1. Document name: {0}", fileName)
Console.WriteLine("2. Buil-in Properties")
For Each prop As DocumentProperty In doc.BuiltInDocumentProperties
Console.WriteLine("{0} : {1}", prop.Name, prop.Value)
Next prop
Console.WriteLine("3. Custom Properties")
For Each prop As DocumentProperty In doc.CustomDocumentProperties
Console.WriteLine("{0} : {1}", prop.Name, prop.Value)
Next propRequirements
Namespace: Aspose.Words.Properties
Assembly: Aspose.Words (in Aspose.Words.dll)
See Also
BuiltInDocumentProperties Members | Aspose.Words.Properties Namespace | Document | BuiltInDocumentProperties | CustomDocumentProperties