Breyta

Deila með


PropertyGrid.OnComComponentNameChanged(ComponentRenameEventArgs) Method

Definition

Raises the ComComponentNameChanged event.

protected:
 void OnComComponentNameChanged(System::ComponentModel::Design::ComponentRenameEventArgs ^ e);
protected void OnComComponentNameChanged (System.ComponentModel.Design.ComponentRenameEventArgs e);
member this.OnComComponentNameChanged : System.ComponentModel.Design.ComponentRenameEventArgs -> unit
Protected Sub OnComComponentNameChanged (e As ComponentRenameEventArgs)

Parameters

e
ComponentRenameEventArgs

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

Applies to