Share via


ITextDocument.BatchDisplayUpdates Method

Definition

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

Int32

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.

Applies to

See also