DocumentPropertyCollection

DocumentPropertyCollection

Overview

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

Base class for BuiltInDocumentProperties and CustomDocumentProperties collections.

Edition status of its 9 listed members (a property and its accessor methods are listed separately, overloads once): 9 not yet exercised by a verified example.

This class declares 9 methods for DocumentPropertyCollection objects in Java programs. Available methods include: clear, contains, get, getCount, indexOf, iterator, remove, removeAt. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: count.

Properties

NameTypeAccessDescription
countintReadGets number of items in the collection.

Methods

SignatureDescription
getCount() → intGets number of items in the collection.
get(name: String) → DocumentPropertyReturns a DocumentProperty object by the name of the property.
get(index: int) → DocumentPropertyReturns a DocumentProperty object by index.
iterator() → Iterator<DocumentProperty>Returns an iterator object that can be used to iterate over all items in the collection.
contains(name: String) → booleanReturns true if a property with the specified name exists in the collection.
indexOf(name: String) → intGets 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