Table of Contents

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

CellStyle

this[string]

gets a object from a collection.

public CellStyle this[string name] { get; }

Parameters

name string

Property Value

CellStyle

Methods

Add(CellStyle)

Adds a style.

public void Add(CellStyle style)

Parameters

style CellStyle

Style to added.

Add(string)

Adds a new style.

public CellStyle Add(string name)

Parameters

name string

Style name

Returns

CellStyle

Compare(CellStyle, CellStyle)

public static bool Compare(CellStyle source, CellStyle destination)

Parameters

source CellStyle
destination CellStyle

Returns

bool

Contains(CellStyle)

Style which is in collection.

public CellStyle Contains(CellStyle style)

Parameters

style CellStyle

Style object.

Returns

CellStyle

GetDefaultStyle(string)

public CellStyle GetDefaultStyle(string styleName)

Parameters

styleName string

Returns

CellStyle

Remove(CellStyle)

public void Remove(CellStyle style)

Parameters

style CellStyle

Replace(CellStyle)

public void Replace(CellStyle style)

Parameters

style CellStyle