System.Windows.Forms.ListView.SearchForVirtualItem Event

Occurs when the System.Windows.Forms.ListView is in virtual mode and a search is taking place.

Syntax

public event SearchForVirtualItemEventHandler SearchForVirtualItem

Remarks

This event occurs when a System.Windows.Forms.ListView is in virtual mode and the erload:System.Windows.Forms.ListView.FindNearestItem or erload:System.Windows.Forms.ListView.FindItemWithText method is called. When handling this event, you should calculate which item from the list of items supplied by the ListView.Items property matches the search criteria and set the SearchForVirtualItemEventArgs.Index property to the index of the System.Windows.Forms.ListViewItem. If an item is not provided, erload:System.Windows.Forms.ListView.FindNearestItem and erload:System.Windows.Forms.ListView.FindItemWithText will return null.

For more information about handling events, see Consuming Events.

Requirements

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