Skip to main content
.NET Framework 4.5.2+

ParagraphPropertiesBase.Reset(ParagraphPropertiesMask) Method

Resets the paragraph formatting properties specified by the mask to the properties of the underlying paragraph style or to default properties.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core


void Reset(
    ParagraphPropertiesMask mask


Name Type Description
mask ParagraphPropertiesMask

A ParagraphPropertiesMask enumeration value.


The Reset sets paragraph properties to the underlying style (or the default style, if the style is not applied). The mask allows you to specify paragraph properties to reset.


The following code snippet modifies Alignment and FirstLineIndent properties. These properties are reset to Document.DefaultParagraphProperties values if no specific paragraph style is applied. Other paragraph properties remain unchanged.

View Example

using XtraRichEdit.API.Native;

using (var wordProcessor = new RichEditDocumentServer())
    Document document = wordProcessor.Document;
    DocumentRange range = document.Paragraphs[0].Range;

    // Set alignment and indentation of the first line
    // in the first paragraph to default.
    // Other paragraph properties remain intact.
    ParagraphProperties cp = document.BeginUpdateParagraphs(range);
    cp.Reset(ParagraphPropertiesMask.Alignment | ParagraphPropertiesMask.FirstLineIndent);

The following code snippets (auto-collected from DevExpress Examples) contain references to the Reset(ParagraphPropertiesMask) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also