public class CustomDocumentPropertyCollection
Each
Example:
//Instantiate a Workbook object Workbook workbook = new Workbook("book1.xls"); //Retrieve a list of all custom document properties of the Excel file CustomDocumentPropertyCollection customProperties = workbook.getWorksheets().getCustomDocumentProperties();
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | |
Gets number of items in the collection.
|
||
DocumentProperty | get(int index) | |
Returns a |
||
DocumentProperty | get(java.lang.String name) | |
Returns a |
Method Summary | ||
---|---|---|
DocumentProperty | add(java.lang.String name, boolean value) | |
Creates a new custom document property of the PropertyType.Boolean data type.
|
||
DocumentProperty | add(java.lang.String name, com.aspose.cells.DateTime value) | |
Creates a new custom document property of the PropertyType.DateTime data type.
|
||
DocumentProperty | add(java.lang.String name, double value) | |
Creates a new custom document property of the PropertyType.Float data type.
|
||
DocumentProperty | add(java.lang.String name, int value) | |
Creates a new custom document property of the PropertyType.Number data type.
|
||
DocumentProperty | add(java.lang.String name, java.lang.String value) | |
Creates a new custom document property of the PropertyType.String data type.
|
||
DocumentProperty | addLinkToContent(java.lang.String name, java.lang.String source) | |
Creates a new custom document property which links to content.
|
||
void | clear() | |
Removes all properties from the collection.
|
||
boolean | contains(java.lang.String name) | |
Returns true if a property with the specified name exists in the collection.
|
||
int | indexOf(java.lang.String name) | |
Gets the index of a property by name.
|
||
java.util.Iterator | iterator() | |
void | remove(java.lang.String name) | |
Removes a property with the specified name from the collection.
|
||
void | removeAt(int index) | |
Removes a property at the specified index.
|
||
void | updateLinkedPropertyValue() | |
Update custom document property value which links to content.
|
||
void | updateLinkedRange() | |
Update custom document property value to linked range.
|
public int getCount()
public DocumentProperty get(java.lang.String name)
Returns null if a property with the specified name is not found.
name
- The case-insensitive name of the property to retrieve.public DocumentProperty get(int index)
index
- Zero-based index of the public DocumentProperty add(java.lang.String name, java.lang.String value)
name
- The name of the property.value
- The value of the property.public DocumentProperty add(java.lang.String name, int value)
name
- The name of the property.value
- The value of the property.public DocumentProperty add(java.lang.String name, com.aspose.cells.DateTime value)
name
- The name of the property.value
- The value of the property.public DocumentProperty add(java.lang.String name, boolean value)
name
- The name of the property.value
- The value of the property.public DocumentProperty add(java.lang.String name, double value)
name
- The name of the property.value
- The value of the property.public DocumentProperty addLinkToContent(java.lang.String name, java.lang.String source)
name
- The name of the property.source
- The source of the propertypublic void updateLinkedPropertyValue()
public void updateLinkedRange()
public java.util.Iterator iterator()
public boolean contains(java.lang.String name)
name
- The case-insensitive name of the property.public int indexOf(java.lang.String name)
name
- The case-insensitive name of the property.public void remove(java.lang.String name)
name
- The case-insensitive name of the property.public void removeAt(int index)
index
- The zero based index.public void clear()