Example:
# Instantiate a Workbook object by calling its empty constructor workbook = Workbook("CustomProperties.xlsx") # Retrieve a list of all custom document properties of the Excel file customProperties = workbook.getWorksheets().getCustomDocumentProperties() # Accessng a custom document property by using the property index customProperty1 = customProperties.get(3) # Accessng a custom document property by using the property name customProperty2 = customProperties.get("Owner")
Property Getters/Setters Summary | ||
---|---|---|
method | getCount() | |
method | get(index) | |
Returns a |
||
method | get(name) | |
Returns a |
Method Summary | ||
---|---|---|
method | add(value) | |
Reserved for internal use. |
||
method | clear() | |
method | contains(value) | |
Reserved for internal use. |
||
method | contains(name) | |
Returns true if a property with the specified name exists in the collection.
|
||
method | get(index) | |
Reserved for internal use. |
||
method | indexOf(value) | |
Reserved for internal use. |
||
method | indexOf(name) | |
Gets the index of a property by name.
|
||
method | iterator() | |
method | remove(name) | |
Removes a property with the specified name from the collection.
|
||
method | removeAt(index) | |
Removes a property at the specified index.
|
int getCount()
DocumentProperty get(name)
Returns null if a property with the specified name is not found.
name
- The case-insensitive name of the property to retrieve.DocumentProperty get(index)
index
- Zero-based index of the boolean contains(name)
name: String
- The case-insensitive name of the property.int indexOf(name)
name: String
- The case-insensitive name of the property.remove(name)
name: String
- The case-insensitive name of the property.removeAt(index)
index: int
- The zero based index.clear()
Iterator iterator()
Object get(index)
boolean contains(value)
int add(value)
int indexOf(value)