CellStyleCollection
Class
Represents cell style collection.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.PropertySystem
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
C#
public class CellStyleCollection : IEnumerable<CellStyle>, IEnumerable
Inheritance: objectCellStyleCollection
Implements:
Events
Occurs when the collection is changed.
C#
public event EventHandler Changed
Methods
Adds the specified style.
C#
public CellStyle Add(string styleName, CellStyleCategory category = CellStyleCategory.Custom, bool isRemovable = true)
Name of the style.
categoryCellStyleCategoryThe category.
isRemovableboolA value indicating if the style can be removed later.
Returns:The style.
Returns an enumerator that iterates through the collection.
C#
public IEnumerator<CellStyle> GetEnumerator()
A IEnumerator<T> that can be used to iterate through the collection.
Implements:
Called when the collection is changed.
C#
protected virtual void OnChanged()
Properties
Gets the count of the styles.
C#
public int Count { get; }
The count of the styles.