public class CustomDocumentPropertyCollection extends DocumentPropertyCollection
Remarks
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();
| Modifier and Type | Method and Description |
|---|---|
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,
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 |
updateLinkedPropertyValue()
Updates values of all custom properties that are linked to content(use
cell value of linked range to update value of custom property).
|
void |
updateLinkedRange()
Updates all ranges that are linked to custom properties(use the value of
custom document property to update cell value of linked range).
|
contains, get, get, indexOf, remove, removeAtpublic 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, 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 property. It should be the name of named range.public void updateLinkedPropertyValue()
public void updateLinkedRange()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.