com.spire.xls.collections
Class StylesCollection

java.lang.Object
  extended by com.spire.ms.System.Collections.CollectionBase
      extended by com.spire.xls.core.spreadsheet.collections.CollectionExtended
          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.