Class StylesCollection
- Namespace
- Spire.Xls.Collections
- Assembly
- Spire.XLS.dll
public class StylesCollection : XlsStylesCollection, IList<IStyle>, ICollection<IStyle>, IEnumerable<IStyle>, IExcelApplication, ICloneParent, IStyles, IEnumerable
- Inheritance
-
StylesCollection
- Implements
- Inherited Members
Properties
this[int]
gets a object from a collection.
public CellStyle this[int Index] { get; }
Parameters
Index
int
Property Value
this[string]
gets a object from a collection.
public CellStyle this[string name] { get; }
Parameters
name
string
Property Value
Methods
Add(CellStyle)
Adds a style.
public void Add(CellStyle style)
Parameters
style
CellStyleStyle to added.
Add(string)
Adds a new style.
public CellStyle Add(string name)
Parameters
name
stringStyle name
Returns
Compare(CellStyle, CellStyle)
public static bool Compare(CellStyle source, CellStyle destination)
Parameters
Returns
Contains(CellStyle)
Style which is in collection.
public CellStyle Contains(CellStyle style)
Parameters
style
CellStyleStyle object.
Returns
GetDefaultStyle(string)
public CellStyle GetDefaultStyle(string styleName)
Parameters
styleName
string
Returns
Remove(CellStyle)
public void Remove(CellStyle style)
Parameters
style
CellStyle
Replace(CellStyle)
public void Replace(CellStyle style)
Parameters
style
CellStyle