CustomDocumentProperties
Overview
CustomDocumentProperties is a class in Aspose.Words FOSS for Java.
Inherits from: DocumentPropertyCollection.
A collection of custom document properties.
Edition status of its 11 listed members (a property and its accessor methods are listed separately, overloads once): 11 not yet exercised by a verified example.
This class declares 15 methods for CustomDocumentProperties objects in Java programs.
Available methods include: add, addLinkToContent, 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 |
|---|---|
add(name: String, value: String) → DocumentProperty | Creates a new custom document property of the PropertyType.STRING data type. |
add(name: String, value: int) → DocumentProperty | Creates a new custom document property of the PropertyType.NUMBER data type. |
add(name: String, value: java.util.Date) → DocumentProperty | Calls add(name, value) on this CustomDocumentProperties instance. |
add(name: String, value: boolean) → DocumentProperty | Creates a new custom document property of the PropertyType.BOOLEAN data type. |
add(name: String, value: double) → DocumentProperty | Creates a new custom document property of the PropertyType.DOUBLE data type. |
addLinkToContent(name: String, linkSource: String) → DocumentProperty | Creates a new linked to content custom document property. |
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. |