Each
Example:
//Instantiate a Workbook object $workbook = new cells\Workbook("book1.xlsx"); //Retrieve a list of all custom document properties of the Excel file $customProperties = $workbook->getWorksheets()->getCustomDocumentProperties(); $customProperty1 = $customProperties->get(3); $customProperty2 = $customProperties->get("Owner"); $customProperties->add("test1", "testv1");
Property Getters/Setters Summary | ||
---|---|---|
function | getCount() | |
Gets number of items in the collection.
|
||
function | get(index) | |
Returns a |
||
function | get(name) | |
Returns a |
Method Summary | ||
---|---|---|
function | add(name, value) | |
Creates a new custom document property of the PropertyType.Boolean data type.
|
||
function | add(name, value) | |
Creates a new custom document property of the PropertyType.DateTime data type.
|
||
function | add(name, value) | |
Creates a new custom document property of the PropertyType.Float data type.
|
||
function | add(name, value) | |
Creates a new custom document property of the PropertyType.Number data type.
|
||
function | add(name, value) | |
Creates a new custom document property of the PropertyType.String data type.
|
||
function | addLinkToContent(name, source) | |
Creates a new custom document property which links to content.
|
||
function | clear() | |
Removes all properties from the collection.
|
||
function | contains(name) | |
Returns true if a property with the specified name exists in the collection.
|
||
function | indexOf(name) | |
Gets the index of a property by name.
|
||
function | iterator() | |
function | remove(name) | |
Removes a property with the specified name from the collection.
|
||
function | removeAt(index) | |
Removes a property at the specified index.
|
||
function | updateLinkedPropertyValue() | |
Update custom document property value which links to content.
|
||
function | updateLinkedRange() | |
Update custom document property value to linked range.
|
function getCount()
function get(name)
Returns null if a property with the specified name is not found.
name
- The case-insensitive name of the property to retrieve.function get(index)
index
- Zero-based index of the function add(name, value)
name: String
- The name of the property.value: String
- The value of the property.function add(name, value)
name: String
- The name of the property.value: Number
- The value of the property.function add(name, value)
name: String
- The name of the property.value: DateTime
- The value of the property.function add(name, value)
name: String
- The name of the property.value: boolean
- The value of the property.function add(name, value)
name: String
- The name of the property.value: Number
- The value of the property.function addLinkToContent(name, source)
name: String
- The name of the property.source: String
- The source of the propertyfunction updateLinkedPropertyValue()
function updateLinkedRange()
function iterator()
function contains(name)
name: String
- The case-insensitive name of the property.function indexOf(name)
name: String
- The case-insensitive name of the property.function remove(name)
name: String
- The case-insensitive name of the property.function removeAt(index)
index: Number
- The zero based index.function clear()