Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

SubDocument.EndUpdateParagraphs(ParagraphProperties) Method

Finalizes the modification of paragraph formatting after calling the SubDocument.BeginUpdateParagraphs method.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll


void EndUpdateParagraphs(
    ParagraphProperties properties


Name Type Description
properties ParagraphProperties

A ParagraphProperties object representing paragraph formatting.



A complete sample project is available at: WinForms RichEdit Document API

document.AppendText("Modified Paragraph\nNormal\nNormal");

//The target range is the first paragraph
DocumentPosition pos = document.Range.Start;
DocumentRange range = document.CreateRange(pos, 0);

// Create and customize an object  
// that sets character formatting for the selected range
ParagraphProperties pp = document.BeginUpdateParagraphs(range);
// Center paragraph
pp.Alignment = ParagraphAlignment.Center;
// Set triple spacing
pp.LineSpacingType = ParagraphLineSpacing.Multiple;
pp.LineSpacingMultiplier = 3;
// Set left indent at 0.5".
// Default unit is 1/300 of an inch (a document unit).
pp.LeftIndent = DevExpress.Office.Utils.Units.InchesToDocumentsF(0.5f);
// Set tab stop at 1.5"
TabInfoCollection tbiColl = pp.BeginUpdateTabs(true);
TabInfo tbi = new DevExpress.XtraRichEdit.API.Native.TabInfo();
tbi.Alignment = TabAlignmentType.Center;
tbi.Position = DevExpress.Office.Utils.Units.InchesToDocumentsF(1.5f);

//Finalize modifications
// with this method call

The following code snippets (auto-collected from DevExpress Examples) contain references to the EndUpdateParagraphs(ParagraphProperties) 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