ClassCellStyleCollection
Represents cell style collection.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.PropertySystem
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class CellStyleCollection : IEnumerable
Inheritance: objectCellStyleCollection
Implements:
Properties
Count
Gets the count of the styles.
Workbook
Gets the workbook.
Declaration
public Workbook Workbook { get; }
Property Value
The workbook.
this[string]
Gets the CellStyle with the specified style name.
Methods
Add(string, CellStyleCategory, bool)
Adds the specified style.
Declaration
public CellStyle Add(string styleName, CellStyleCategory category = CellStyleCategory.Custom, bool isRemovable = true)
Parameters
styleName
Name of the style.
category
The category.
isRemovable
A value indicating if the style can be removed later.
Returns
The style.
Contains(CellStyle)
Determines whether the specified style is contained.
Contains(string)
Determines whether the style with the specified name is contained.
GetByName(string)
Gets the style by name.
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<CellStyle> GetEnumerator()
Returns
IEnumerator<CellStyle>
A IEnumerator<T> that can be used to iterate through the collection.
OnChanged()
Called when the collection is changed.
Declaration
protected virtual void OnChanged()
Remove(CellStyle)
Removes the specified style.
Remove(string)
Removes the specified style by name.
Events
Changed
Occurs when the collection is changed.