แก้ไข

แชร์ผ่าน


ListView.OnBeforeLabelEdit(LabelEditEventArgs) Method

Definition

Raises the BeforeLabelEdit event.

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

Parameters

e
LabelEditEventArgs

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

Applies to

See also