ITextDocument.BatchDisplayUpdates Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Increments an internal counter that controls whether text updates are displayed immediately or batched.
public:
int BatchDisplayUpdates();
int BatchDisplayUpdates();
public int BatchDisplayUpdates();
function batchDisplayUpdates()
Public Function BatchDisplayUpdates () As Integer
Returns
int
The value of the internal counter.
Remarks
If the internal counter is nonzero, text updates are batched. This lets you perform a sequence of editing operations without the performance loss and flicker of screen updating.
To decrement the internal counter, call the ITextDocument.ApplyDisplayUpdates method.
Note
If undo grouping is on (see ITextDocument.BeginUndoGroup), screen updating is suppressed regardless of the internal counter's value.