Redigeeri

Jagamisviis:


ListView.OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs) Method

Definition

Raises the RetrieveVirtualItem event.

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

Parameters

Remarks

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

The OnRetrieveVirtualItem 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 OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs) in a derived class, be sure to call the base class's OnRetrieveVirtualItem(RetrieveVirtualItemEventArgs) method so that registered delegates receive the event.

Applies to