DataGridViewCell.OnLeave(Int32, Boolean) DataGridViewCell.OnLeave(Int32, Boolean) DataGridViewCell.OnLeave(Int32, Boolean) DataGridViewCell.OnLeave(Int32, Boolean) Method

Definición

Se le llama cuando el foco se desplaza de una celda.Called when the focus moves from a cell.

protected:
 virtual void OnLeave(int rowIndex, bool throughMouseClick);
protected virtual void OnLeave (int rowIndex, bool throughMouseClick);
abstract member OnLeave : int * bool -> unit
override this.OnLeave : int * bool -> unit
Protected Overridable Sub OnLeave (rowIndex As Integer, throughMouseClick As Boolean)

Parámetros

rowIndex
Int32 Int32 Int32 Int32

El índice de la fila primaria de la celda.The index of the cell's parent row.

throughMouseClick
Boolean Boolean Boolean Boolean

true si la acción del usuario ha trasladado el foco de la celda; false si es una operación de programación la que traslada el foco de la celda.true if a user action moved focus from the cell; false if a programmatic operation moved focus from the cell.

Comentarios

Este método es similar al DataGridView.OnCellLeave método.This method is similar to the DataGridView.OnCellLeave method. Se llama en las mismas circunstancias en las que se DataGridView.CellLeave genera un evento, pero realmente no provoca el evento.It is called in the same circumstances in which a DataGridView.CellLeave event is raised, but it does not actually raise the event.

Se aplica a

Consulte también: