Back to Devexpress

SubDocument.EndUpdate() Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-592739f1.md

latest5.4 KB
Original Source

SubDocument.EndUpdate() Method

Unlocks the SubDocument object after you call BeginUpdate. It also causes an immediate visual update.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void EndUpdate()
vb
Sub

Remarks

See SubDocument.BeginUpdate, to learn more.

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

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Formatting.cs#L15

csharp
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
// The target range is the second paragraph

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormattingActions.cs#L14

csharp
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
DocumentRange range = document.Paragraphs[1].Range;

word-document-api-examples/CS/CodeExamples/FormattingActions.cs#L31

csharp
// Finalize to edit the document.
document.EndUpdate();

winforms-richedit-table-of-contents-practical-guide/CS/Form1.cs#L31

csharp
InsertTOC("\\h", true);
    Document.EndUpdate();
}

word-processing-table-of-contents-practical-guide/CS/Program.cs#L46

csharp
InsertTOC(document, "\\h", true);
document.EndUpdate();
string documentName = "Employees_with_Styles_TOC.docx";

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Formatting.vb#L14

vb
document.AppendText("Normal" & Global.Microsoft.VisualBasic.Constants.vbLf & "Formatted" & Global.Microsoft.VisualBasic.Constants.vbLf & "Normal")
document.EndUpdate()
' The target range is the second paragraph

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/FormattingActions.vb#L11

vb
document.AppendText("Normal" & vbLf & "Formatted" & vbLf & "Normal")
document.EndUpdate()
Dim range As DocumentRange = document.Paragraphs(1).Range

word-document-api-examples/VB/CodeExamples/FormattingActions.vb#L29

vb
' Finalize to edit the document.
document.EndUpdate()
' Access the range of the document's second paragraph.

winforms-richedit-table-of-contents-practical-guide/VB/Form1.vb#L39

vb
InsertTOC("\h", True)
    Document.EndUpdate()
End Sub

word-processing-table-of-contents-practical-guide/VB/Program.vb#L44

vb
InsertTOC(document, "\h", True)
document.EndUpdate()
Dim documentName As String = "Employees_with_Styles_TOC.docx"

See Also

SubDocument.BeginUpdate

RichEditControl.BeginUpdate

SubDocument Interface

SubDocument Members

DevExpress.XtraRichEdit.API.Native Namespace