DataGridView.OnRowHeightChanged(DataGridViewRowEventArgs) Metodo

Definizione

Genera l'evento RowHeightChanged.

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

Parametri

e
DataGridViewRowEventArgs

Oggetto DataGridViewRowEventArgs contenente i dati dell'evento.

Eccezioni

La riga indicata dalla Row proprietà di e non appartiene a questo DataGridView controllo.

Commenti

La generazione di un evento richiama il gestore eventi tramite un delegato. Per altre informazioni, vedere Gestione e generazione di eventi.

Il OnRowHeightChanged metodo consente anche alle classi derivate di gestire l'evento senza associare un delegato. Questa è la tecnica preferita per gestire l'evento in una classe derivata.

Note per gli eredi

Quando si esegue l'override OnRowHeightChanged(DataGridViewRowEventArgs) in una classe derivata, assicurarsi di chiamare il metodo della OnRowHeightChanged(DataGridViewRowEventArgs) classe di base in modo che i delegati registrati ricevano l'evento.

Si applica a

Vedi anche