officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-592739f1.md
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
void EndUpdate()
Sub
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
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
// The target range is the second paragraph
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormattingActions.cs#L14
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
DocumentRange range = document.Paragraphs[1].Range;
word-document-api-examples/CS/CodeExamples/FormattingActions.cs#L31
// Finalize to edit the document.
document.EndUpdate();
winforms-richedit-table-of-contents-practical-guide/CS/Form1.cs#L31
InsertTOC("\\h", true);
Document.EndUpdate();
}
word-processing-table-of-contents-practical-guide/CS/Program.cs#L46
InsertTOC(document, "\\h", true);
document.EndUpdate();
string documentName = "Employees_with_Styles_TOC.docx";
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Formatting.vb#L14
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
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
' 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
InsertTOC("\h", True)
Document.EndUpdate()
End Sub
word-processing-table-of-contents-practical-guide/VB/Program.vb#L44
InsertTOC(document, "\h", True)
document.EndUpdate()
Dim documentName As String = "Employees_with_Styles_TOC.docx"
See Also