Back to Devexpress

CharacterStyleCollection.Delete(CharacterStyle) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterstylecollection-dot-delete-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterstyle-x29.md

latest1.7 KB
Original Source

CharacterStyleCollection.Delete(CharacterStyle) Method

Marks the specified style as deleted, so it can no longer be applied.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Delete(
    CharacterStyle style
)
vb
Sub Delete(
    style As CharacterStyle
)

Parameters

NameTypeDescription
styleCharacterStyle

A CharacterStyle to delete.

|

Remarks

A deleted style cannot be applied to a text, nor it can be saved with the document. When trying to apply a deleted style via code, an exception fires.

See Also

IsDeleted

CharacterStyleCollection Interface

CharacterStyleCollection Members

DevExpress.XtraRichEdit.API.Native Namespace