public class ContentTypePropertyCollection extends CollectionBase
ContentTypeProperty objects that represent additional information.
Example
//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Add a new property.
workbook.getContentTypeProperties().add("Admin", "Aspose", "text");
//Save the Excel file
workbook.save("book1.xlsm");
| Modifier and Type | Method and Description |
|---|---|
int |
add(java.lang.String name,
java.lang.String value)
Adds content type property information.
|
int |
add(java.lang.String name,
java.lang.String value,
java.lang.String type)
Adds content type property information.
|
ContentTypeProperty |
get(int index)
Gets the content type property by the specific index.
|
ContentTypeProperty |
get(java.lang.String name)
Gets the content type property by the property name.
|
public int add(java.lang.String name,
java.lang.String value)
name - The name of the content type property.value - The value of the content type property.public int add(java.lang.String name,
java.lang.String value,
java.lang.String type)
name - The name of the content type property.value - The value of the content type property.type - The type of the content type property.public ContentTypeProperty get(int index)
get in class CollectionBaseindex - The index.public ContentTypeProperty get(java.lang.String name)
name - The property name.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.