com.aspose.cells
Class CustomDocumentPropertyCollection
java.lang.Object
CollectionBase
DocumentPropertyCollection
com.aspose.cells.CustomDocumentPropertyCollection
- All Implemented Interfaces:
- java.lang.Iterable
public class CustomDocumentPropertyCollection
- extends DocumentPropertyCollection
A collection of custom document properties.
Each DocumentProperty object represents a custom property of a container document.
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();
|
Method Summary |
int | add(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
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() | → inherited from com.aspose.cells.CollectionBase
|
| |
boolean | contains(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
boolean | contains(java.lang.String name) | → inherited from DocumentPropertyCollection
|
|
Returns true if a property with the specified name exists in the collection.
|
int | indexOf(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
int | indexOf(java.lang.String name) | → inherited from DocumentPropertyCollection
|
|
Gets the index of a property by name.
|
java.util.Iterator | iterator() | → inherited from com.aspose.cells.CollectionBase
|
| |
void | remove(java.lang.String name) | → inherited from DocumentPropertyCollection
|
|
Removes a property with the specified name from the collection.
|
void | removeAt(int index) | → inherited from DocumentPropertyCollection
|
|
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.
|
|
Property Getters/Setters Detail |
getCount | → inherited from com.aspose.cells.CollectionBase
|
public int getCount()
|
-
-
Returns a DocumentProperty object by the name of the property.
Returns null if a property with the specified name is not found.
- Parameters:
name - The case-insensitive name of the property to retrieve.
-
Returns a DocumentProperty object by index.
- Parameters:
index - Zero-based index of the DocumentProperty to retrieve.
-
Creates a new custom document property of the PropertyType.String data type.
- Parameters:
name - The name of the property.value - The value of the property.
- Returns:
- The newly created property object.
-
Creates a new custom document property of the PropertyType.Number data type.
- Parameters:
name - The name of the property.value - The value of the property.
- Returns:
- The newly created property object.
add | |
public DocumentProperty add(java.lang.String name, com.aspose.cells.DateTime value) |
-
Creates a new custom document property of the PropertyType.DateTime data type.
- Parameters:
name - The name of the property.value - The value of the property.
- Returns:
- The newly created property object.
-
Creates a new custom document property of the PropertyType.Boolean data type.
- Parameters:
name - The name of the property.value - The value of the property.
- Returns:
- The newly created property object.
-
Creates a new custom document property of the PropertyType.Float data type.
- Parameters:
name - The name of the property.value - The value of the property.
- Returns:
- The newly created property object.
addLinkToContent | |
public DocumentProperty addLinkToContent(java.lang.String name, java.lang.String source) |
-
Creates a new custom document property which links to content.
- Parameters:
name - The name of the property.source - The source of the property
- Returns:
- The newly created property object.
updateLinkedPropertyValue | |
public void updateLinkedPropertyValue() |
-
Update custom document property value which links to content.
updateLinkedRange | |
public void updateLinkedRange() |
-
Update custom document property value to linked range.
-
Returns true if a property with the specified name exists in the collection.
- Parameters:
name - The case-insensitive name of the property.
- Returns:
- True if the property exists in the collection; false otherwise.
-
Gets the index of a property by name.
- Parameters:
name - The case-insensitive name of the property.
- Returns:
- The zero based index. Negative value if not found.
-
Removes a property with the specified name from the collection.
- Parameters:
name - The case-insensitive name of the property.
-
Removes a property at the specified index.
- Parameters:
index - The zero based index.
clear | → inherited from com.aspose.cells.CollectionBase
|
public void clear() |
-
iterator | → inherited from com.aspose.cells.CollectionBase
|
public java.util.Iterator iterator() |
-
contains | → inherited from com.aspose.cells.CollectionBase
|
public boolean contains(java.lang.Object value) |
- Reserved for internal use.
add | → inherited from com.aspose.cells.CollectionBase
|
public int add(java.lang.Object value) |
- Reserved for internal use.
indexOf | → inherited from com.aspose.cells.CollectionBase
|
public int indexOf(java.lang.Object value) |
- Reserved for internal use.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.