Back to Devexpress

ParagraphStyleCollection.Delete(ParagraphStyle) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphstylecollection-dot-delete-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-paragraphstyle-x29.md

latest1.7 KB
Original Source

ParagraphStyleCollection.Delete(ParagraphStyle) 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(
    ParagraphStyle style
)
vb
Sub Delete(
    style As ParagraphStyle
)

Parameters

NameTypeDescription
styleParagraphStyle

A ParagraphStyle to delete.

|

Remarks

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

See Also

IsDeleted

ParagraphStyleCollection Interface

ParagraphStyleCollection Members

DevExpress.XtraRichEdit.API.Native Namespace