com.aspose.cells
Class ContentTypePropertyCollection
java.lang.Object
CollectionBase
com.aspose.cells.ContentTypePropertyCollection
- All Implemented Interfaces:
- java.lang.Iterable
public class ContentTypePropertyCollection
- extends CollectionBase
A collection of 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");
|
Property Getters/Setters Summary |
int | getCount() | → inherited from com.aspose.cells.CollectionBase
|
| |
ContentTypeProperty | get(int) | |
|
Gets the content type property by the specific index.
|
ContentTypeProperty | get(java.lang.String) | |
|
Gets the content type property by the property name.
|
|
Method Summary |
int | add(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
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.
|
void | clear() | → inherited from com.aspose.cells.CollectionBase
|
| |
boolean | contains(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
int | indexOf(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
java.util.Iterator | iterator() | → inherited from com.aspose.cells.CollectionBase
|
| |
void | removeAt(int index) | → inherited from com.aspose.cells.CollectionBase
|
| |
|
Property Getters/Setters Detail |
getCount | → inherited from com.aspose.cells.CollectionBase
|
public int getCount()
|
-
-
Gets the content type property by the specific index.
- Parameters:
index - The index.
- Returns:
- The content type property
-
Gets the content type property by the property name.
- Parameters:
name - The property name.
- Returns:
- The content type property
add | |
public int add(java.lang.String name, java.lang.String value) |
-
Adds content type property information.
- Parameters:
name - The name of the content type property.value - The value of the content type property.
add | |
public int add(java.lang.String name, java.lang.String value, java.lang.String type) |
-
Adds content type property information.
- Parameters:
name - The name of the content type property.value - The value of the content type property.type - The type of the content type property.
clear | → inherited from com.aspose.cells.CollectionBase
|
public void clear() |
-
removeAt | → inherited from com.aspose.cells.CollectionBase
|
public void removeAt(int index) |
-
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.