Редагувати

Поділитися через


TreeView.OnBeforeLabelEdit(NodeLabelEditEventArgs) Method

Definition

Raises the BeforeLabelEdit event.

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

Parameters

e
NodeLabelEditEventArgs

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

Applies to

See also