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.Contains(String) Method

Indicates whether the collection contains the style under the specified name.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

bool Contains(
    string name
)

#Parameters

Name Type Description
name String

A String value that specifies the name of the style to locate in the collection.

#Returns

Type Description
Boolean

true, if the collection contains the style under the specified name; otherwise, false.

#Remarks

Cell styles have unique names in the collection. To check whether a style under the specified name already exists in the collection, use the Contains method.

See Also