The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.2.Core.dll

Declaration

void EndUpdateParagraphs(
    ParagraphProperties properties
)
Sub EndUpdateParagraphs(
    properties As ParagraphProperties
)
void EndUpdateParagraphs(
    ParagraphProperties properties
)
Sub EndUpdateParagraphs(
    properties As ParagraphProperties
)
void EndUpdateParagraphs(
    ParagraphProperties properties
)
Sub EndUpdateParagraphs(
    properties As ParagraphProperties
)

Parameters

Name Type Description
properties ParagraphProperties

A ParagraphProperties object representing paragraph formatting.

Parameters

Name Type Description
properties ParagraphProperties

A ParagraphProperties object representing paragraph formatting.

Parameters

Name Type Description
properties ParagraphProperties

A ParagraphProperties object representing paragraph formatting.

Remarks

Document document = server.Document;
document.BeginUpdate();
document.AppendText("Modified Paragraph\nNormal\nNormal");
document.EndUpdate();
DocumentPosition pos = document.Range.Start;
DocumentRange range = document.CreateRange(pos, 0);
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);
tbiColl.Add(tbi);
pp.EndUpdateTabs(tbiColl);
document.EndUpdateParagraphs(pp);
See Also