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) 方法,讓已註冊的委派接收事件。

適用於

另請參閱