A collection of custom document properties.
For a list of all members of this type, see CustomDocumentProperties Members.
System.Object
Aspose.Editor.Desktop.CustomDocumentProperties
[Visual Basic]Public Class CustomDocumentProperties
Remarks
A document can have a number of custom (user defined) properties. These properties can be accessed via the CustomDocumentProperties collection.
You do not create instances of this class directly. You access custom document properties via the CustomDocumentProperties property.
Each item in this collection is a DocumentProperty object that represents a custom property of the container document.
Example
Enumerates through all built-in and custom properties in a document.
[C#]
string fileName = MyPath + "DocumentProperties.xml";
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 = MyPath & "DocumentProperties.xml"
Dim doc As 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.Editor.Desktop
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
CustomDocumentProperties Members | Aspose.Editor.Desktop Namespace | Document | BuiltInDocumentProperties | DocumentProperty