CustomDocumentProperties

CustomDocumentProperties

Overview

CustomDocumentProperties is a class in Aspose.Words FOSS for .NET. Inherits from: DocumentPropertyCollection.

A collection of custom document properties.

This class provides 12 methods for working with CustomDocumentProperties objects in .NET programs. Available methods include: Add, AddLinkToContent, Clear, Contains, GetEnumerator, IndexOf, Remove, RemoveAt. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Count.

Properties

NameTypeAccessDescription
CountintReadGets number of items in the collection.

Methods

SignatureDescription
Add(name: string, value: string)Creates a new custom document property.
Add(name: string, value: int)Creates a new custom document property of the Number data type.
Add(name: string, value: DateTime)Creates a new custom document property of the DateTime data type.
Add(name: string, value: bool)Creates a new custom document property of the Boolean data type.
Add(name: string, value: double)Creates a new custom document property of the Double data type.
AddLinkToContent(name: string, linkSource: string)Creates a new linked to content custom document property.
GetEnumerator()Returns an enumeratoriteratorenumerator object that can be used to iterate over all items in the collection.
Contains(name: string)Returns true if a property with the specified name exists in the collection.
IndexOf(name: string)Gets the index of a property by name.
Remove(name: string)Removes a property with the specified name from the collection.
RemoveAt(index: int)Removes a property at the specified index.
Clear()Removes all properties from the collection.

See Also