Click or drag to resize
TextDocumentEndUpdate Method
Decrements the freeze count. If the freeze count goes to zero, screen updating is enabled.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public void EndUpdate()
Examples
The following example demonstrates how to disable and re-enable screen updating:
C#
void BeginEndUpdateExample(TextDocument document) {
    TextRange range = document.EntireRange;

    document.BeginUpdate();

    for (int i = 0; i < 100; i++) {
        range.Text = "Repeated";
        range.Collapse(RangePosition.End);
    }

    document.EndUpdate();
}
See Also