Collection of named reusable cell styles enabling lookup, addition, and enumeration by style name.
Definition
Namespace:Telerik.Documents.SpreadsheetStreaming
Assembly:Telerik.Documents.SpreadsheetStreaming.dll
Syntax:
public class SpreadCellStyleCollection : IEnumerable<SpreadCellStyle>, IEnumerable
Inheritance: objectSpreadCellStyleCollection
Implements:
Properties
Number of styles currently stored in the collection.
public int Count { get; }
The number of elements contained in this collection.
Indexer returning the SpreadCellStyle matching the provided name, or null if it does not exist.
public SpreadCellStyle this[string styleName] { get; }
The spread cell style.
Methods
Adds a newly created style with the specified unique name and returns it.
public SpreadCellStyle Add(string styleName)
The name of the new cell style.
Returns:The style.
Checks whether the specified style instance is present (by matching its name).
public bool Contains(SpreadCellStyle style)
The style.
Returns:True if it is present; otherwise, false.
Retrieves the style with the specified name, or null if it is not found.
public SpreadCellStyle GetByName(string styleName)
The name of the style.
Returns:The style.
Returns a generic enumerator over the styles in the collection.
public IEnumerator<SpreadCellStyle> GetEnumerator()
A IEnumerator<T> that can be used to iterate through the collection.
Implements: