java.lang.Object
com.aspose.cells.StyleCollection
public class StyleCollection
Example:
Workbook workbook = new Workbook();
StyleCollection styles = workbook.getStyles();
int styleIndex = styles.add();
Style style = workbook.getStyles().get(styleIndex);
| Property Getters/Setters Summary | ||
|---|---|---|
int | getCount() | |
| Gets the count of elements in the collection. | ||
Style | get(int index) | |
|
Gets the |
||
Style | get(java.lang.String name) | |
|
Gets the |
||
| Method Summary | ||
|---|---|---|
int | add() | |
|
Adds a |
||
Style | createBuiltinStyle(int type) | |
Style | getThemeStyle(int themeColorType, double tint) | |
| Gets the theme style. | ||
| Property Getters/Setters Detail |
|---|
getCount | |
public int getCount() | |
get | |
public Style get(int index) | |
index - The zero based index of the element.Example:
StyleCollection styles = excel.getStyles(); int styleIndex = styles.add(); Style style = styles.get(styleIndex);
get | |
public Style get(java.lang.String name) | |
name - Style nameExample:
StyleCollection styles = excel.getStyles();
int styleIndex = styles.add();
Style style = styles.get(styleIndex);
style.setName("MyStyle");
//.....................
Style newStyle = styles.get("MyStyle");| Method Detail |
|---|
getThemeStyle | |
public Style getThemeStyle(int themeColorType, double tint) | |
themeColorType - A tint - The tint value.createBuiltinStyle | |
public Style createBuiltinStyle(int type) | |
type - A add | |
public int add() | |