Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

StyleCollection.Contains(String) Method

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

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

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