Επεξεργασία

Κοινή χρήση μέσω


ListView.OnCacheVirtualItems(CacheVirtualItemsEventArgs) Method

Definition

Raises the CacheVirtualItems event.

protected:
 virtual void OnCacheVirtualItems(System::Windows::Forms::CacheVirtualItemsEventArgs ^ e);
protected virtual void OnCacheVirtualItems (System.Windows.Forms.CacheVirtualItemsEventArgs e);
abstract member OnCacheVirtualItems : System.Windows.Forms.CacheVirtualItemsEventArgs -> unit
override this.OnCacheVirtualItems : System.Windows.Forms.CacheVirtualItemsEventArgs -> unit
Protected Overridable Sub OnCacheVirtualItems (e As CacheVirtualItemsEventArgs)

Parameters

e
CacheVirtualItemsEventArgs

A CacheVirtualItemsEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnCacheVirtualItems method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnCacheVirtualItems(CacheVirtualItemsEventArgs) in a derived class, be sure to call the base class's OnCacheVirtualItems(CacheVirtualItemsEventArgs) method so that registered delegates receive the event.

Applies to