stylescollection-ag凯发旗舰厅



com.spire.xls.collections
class stylescollection

java.lang.object
  extended by com.spire.ms.system.collections.collectionbase
      extended by 
          extended by com.spire.xls.core.spreadsheet.collections.xlsstylescollection
              extended by 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

constructor summary
stylescollection(java.lang.object parent)
           
 
method summary
 void addstyle(cellstyle style)
          adds a style.
 cellstyle addstyle(java.lang.string name)
          adds a new style.
static boolean compare(cellstyle source, cellstyle destination)
           
 cellstyle contains(cellstyle style)
          style which is in collection.
 cellstyle getdefaultstyle(java.lang.string stylename)
          creates built in style.
 cellstyle getstyle(int index)
          gets a object from a collection.
 cellstyle getstyle(java.lang.string name)
          gets a object from a collection.
 void replace(cellstyle style)
           
 
methods inherited from class com.spire.xls.core.spreadsheet.collections.xlsstylescollection
contains, get, remove
 
methods inherited from interface com.spire.xls.core.istyles
get, getcount, getparent
 
constructor detail

stylescollection

public stylescollection(java.lang.object parent)
method detail

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.


网站地图