Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

StyleCollection Members

In This Article
A collection of cell styles in the workbook.

#Properties
Show Inherited Hide Inherited

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
DefaultStyle Returns the Normal style that is applied to cells by default.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
Item[BuiltInStyleId] Provides access to individual built-in styles in the collection by their identifiers.
Item[String] Provides access to individual cell styles in the collection by their names.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

#Methods
Show Inherited Hide Inherited

Name Description
Add(String, CellRange) Creates a new style based on format settings of the specified cell range.
Add(String) Creates a new style with the specified name and appends it to the style collection.
Contains(BuiltInStyleId) Obsolete. Indicates whether the collection contains the specified built-in style.
Contains(String) Indicates whether the collection contains the style under the specified name.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
Hide(Style) Marks the specified style as deleted, so it can no longer be applied to cells.
Remove(String) Obsolete. Marks the style with the specified name as deleted, so it can no longer be applied to cells.
Unhide(Style) Restores the hidden style at its previous position in the collection.
See Also