PropertyGrid.OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) PropertyGrid.OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) PropertyGrid.OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) PropertyGrid.OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) Method

Definición

Genera el evento SelectedGridItemChanged.Raises the SelectedGridItemChanged event.

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

Parámetros

Comentarios

Cuando se genera un evento, se invoca el controlador de eventos a través de un delegado.Raising an event invokes the event handler through a delegate. Para obtener más información, consulte controlar y provocar eventos.For more information, see Handling and Raising Events.

El método OnSelectedGridItemChanged también permite que las clases derivadas controlen el evento sin adjuntar ningún delegado.The OnSelectedGridItemChanged method also allows derived classes to handle the event without attaching a delegate. Ésta es la técnica preferida para controlar el evento en una clase derivada.This is the preferred technique for handling the event in a derived class.

Notas a los desarrolladores de herederos

Al reemplazar OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) en una clase derivada, asegúrese de llamar al OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) método de la clase base para que los delegados registrados reciban el evento.When overriding OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) in a derived class, be sure to call the base class' OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs) method so that registered delegates receive the event.

Se aplica a