Skip to main content
A newer version of this page is available. .
.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.v19.1.Core.dll

Declaration

void Reset(
    ParagraphPropertiesMask mask
)

Parameters

Name Type Description
mask ParagraphPropertiesMask

A ParagraphPropertiesMask enumeration value.

Remarks

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 which will be reset.

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

document.LoadDocument("Grimm.docx", DevExpress.XtraRichEdit.DocumentFormat.OpenXml)
' Set alignment and indentation of the first line in the first paragraph to default. 
' Other paragraph properties remain intact.
Dim range As DocumentRange = document.Paragraphs(0).Range
Dim cp As ParagraphProperties = document.BeginUpdateParagraphs(range)
cp.Reset(ParagraphPropertiesMask.Alignment Or ParagraphPropertiesMask.FirstLineIndent)
document.EndUpdateParagraphs(cp)

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

Note

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