Redigera

Dela via


PropertyGrid.OnPropertyValueChanged(PropertyValueChangedEventArgs) Method

Definition

Raises the PropertyValueChanged event.

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

Parameters

Remarks

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

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

Applies to