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
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets number of items in the collection. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Gets number of items in the collection. |
get(name: String) → DocumentProperty | Returns a DocumentProperty object by the name of the property. |
get(index: int) → DocumentProperty | Returns 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) → boolean | Returns true if a property with the specified name exists in the collection. |
indexOf(name: String) → int | 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. |