語言

DataGridView.OnRowHeightInfoPushed 方法

定義

引發 RowHeightInfoPushed 事件。

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

參數

備註

發起事件會透過代理呼叫事件處理者。 欲了解更多資訊,請參閱 處理與提升事件。

此 OnRowHeightInfoPushed 方法也允許衍生類別在不附加代理的情況下處理事件。 這是在衍生類別中處理事件的首選技術。

給繼承者的注意事項

在導出類別中覆寫 OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs) 時,務必呼叫基底類別的方法 OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs) ,讓註冊代理接收事件。

適用於

另請參閱