Back to Devexpress

StyleCollection.Remove(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-stylecollection-dot-remove-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

StyleCollection.Remove(String) Method

OBSOLETE

Use Hide method instead.

Marks the style with the specified name as deleted, so it can no longer be applied to cells.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[Obsolete("Use StyleCollection.Hide(Style style) method instead.", true)]
bool Remove(
    string name
)
vb
<Obsolete("Use StyleCollection.Hide(Style style) method instead.", True)>
Function Remove(
    name As String
) As Boolean

Parameters

NameTypeDescription
nameString

A String value that specifies the name of the style (Style.Name) to be hidden in the collection.

|

Returns

TypeDescription
Boolean

true if the style is successfully removed; otherwise, false.

|

See Also

How to: Create or Modify a Cell Style

StyleCollection Interface

StyleCollection Members

DevExpress.Spreadsheet Namespace