Редагувати

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


TreeView.OnAfterLabelEdit(NodeLabelEditEventArgs) Method

Definition

Raises the AfterLabelEdit event.

protected:
 virtual void OnAfterLabelEdit(System::Windows::Forms::NodeLabelEditEventArgs ^ e);
protected virtual void OnAfterLabelEdit (System.Windows.Forms.NodeLabelEditEventArgs e);
abstract member OnAfterLabelEdit : System.Windows.Forms.NodeLabelEditEventArgs -> unit
override this.OnAfterLabelEdit : System.Windows.Forms.NodeLabelEditEventArgs -> unit
Protected Overridable Sub OnAfterLabelEdit (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 OnAfterLabelEdit 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 OnAfterLabelEdit(NodeLabelEditEventArgs) in a derived class, be sure to call the base class's OnAfterLabelEdit(NodeLabelEditEventArgs) method so that registered delegates receive the event.

Applies to

See also