System.Windows.Forms.ListView.RedrawItems Method

Forces a range of System.Windows.Forms.ListViewItem objects to be redrawn.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public void RedrawItems (int startIndex, int endIndex, bool invalidateOnly)

Parameters

startIndex
The index for the first item in the range to be redrawn.
endIndex
The index for the last item of the range to be redrawn.
invalidateOnly
true to invalidate the range of items; false to invalidate and repaint the items.

Remarks

The ListView.RedrawItems(int, int, bool) method can be used whether the System.Windows.Forms.ListView is in virtual mode or regular mode.

If the ListView.BeginUpdate method has been called prior to the call to ListView.RedrawItems(int, int, bool), the redraw will not occur.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0