DocumentPropertyCollection
Source: aspose.
Base class for BuiltInDocumentPropertyCollection and CustomDocumentPropertyCollection collections.
Methods
add()
Reserved for internal use.
clear()
contains(name) → boolean
Returns true if a property with the specified name exists in the collection.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
String |
|
The case-insensitive name of the property. |
- Returns
-
boolean
True if the property exists in the collection; false otherwise.
contains()
Reserved for internal use.
get(name)
Returns a DocumentProperty object by the name of the property. Returns null if a property with the specified name is not found.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
String |
|
The case-insensitive name of the property to retrieve. |
get(index)
Returns a DocumentProperty object by index.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
Zero-based index of the |
get()
Reserved for internal use.
getCount()
indexOf(name) → Number
Gets the index of a property by name.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
String |
|
The case-insensitive name of the property. |
- Returns
-
Number
The zero based index. Negative value if not found.
indexOf()
Reserved for internal use.
iterator()
remove(name)
Removes a property with the specified name from the collection.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
name |
String |
|
The case-insensitive name of the property. |
removeAt(index)
Removes a property at the specified index.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
The zero based index. |