stylescollection-ag凯发旗舰厅
com.spire.xls.collections
class stylescollection
java.lang.object
com.spire.ms.system.collections.collectionbase
com.spire.xls.core.spreadsheet.collections.xlsstylescollection
com.spire.xls.collections.stylescollection
- all implemented interfaces:
- com.spire.ms.system.collections.icollection, com.spire.ms.system.collections.ienumerable, istyles, java.lang.iterable
public class stylescollection
- extends xlsstylescollection
stylescollection
public stylescollection(java.lang.object parent)
getstyle
public cellstyle getstyle(int index)
- gets a object from a collection.
- parameters:
index
-
- returns:
getstyle
public cellstyle getstyle(java.lang.string name)
- gets a object from a collection.
- parameters:
name
-
- returns:
addstyle
public cellstyle addstyle(java.lang.string name)
- adds a new style.
- parameters:
name
- style name
- returns:
addstyle
public void addstyle(cellstyle style)
- adds a style.
- parameters:
style
- style to added.
contains
public cellstyle contains(cellstyle style)
- style which is in collection.
- parameters:
style
- style object.
- returns:
compare
public static boolean compare(cellstyle source,
cellstyle destination)
replace
public void replace(cellstyle style)
getdefaultstyle
public cellstyle getdefaultstyle(java.lang.string stylename)
- creates built in style.
- parameters:
stylename
- name of the style.
- returns:
- created style.