DocumentPropertyCollection

DocumentPropertyCollection

Overview

DocumentPropertyCollection is a class in Aspose.Words FOSS for .NET. Inherits from: IEnumerable<DocumentProperty>.

Base class for BuiltInDocumentProperties and CustomDocumentProperties collections.

This class provides 6 methods for working with DocumentPropertyCollection objects in .NET programs. Available methods include: 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
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