DataGridView.OnCellMouseLeave(DataGridViewCellEventArgs) Metoda

Definicja

CellMouseLeave Zgłasza zdarzenie.

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

Parametry

e
DataGridViewCellEventArgs

Element DataGridViewCellEventArgs zawierający dane zdarzenia.

Wyjątki

Wartość ColumnIndex właściwości jest e większa niż liczba kolumn w kontrolce minus jedna.

-lub-

Wartość RowIndex właściwości jest e większa niż liczba wierszy w kontrolce minus jeden.

Uwagi

Podnoszenie zdarzenia wywołuje program obsługi zdarzeń przez delegata. Aby uzyskać więcej informacji, zobacz Obsługa i podnoszenie zdarzeń.

Metoda OnCellMouseLeave umożliwia również klasom pochodnym obsługę zdarzenia bez dołączania delegata. Jest to preferowana technika obsługi zdarzenia w klasie pochodnej.

Uwagi dotyczące dziedziczenia

Podczas zastępowania OnCellMouseLeave(DataGridViewCellEventArgs) w klasie pochodnej należy wywołać metodę klasy OnCellMouseLeave(DataGridViewCellEventArgs) bazowej, aby zarejestrowani delegaci otrzymywali zdarzenie.

Dotyczy

Zobacz też