DataGridViewCellEventArgs(Int32, Int32) 构造函数

定义

初始化 DataGridViewCellEventArgs 类的新实例。Initializes a new instance of the DataGridViewCellEventArgs class.

public:
 DataGridViewCellEventArgs(int columnIndex, int rowIndex);
public DataGridViewCellEventArgs (int columnIndex, int rowIndex);
new System.Windows.Forms.DataGridViewCellEventArgs : int * int -> System.Windows.Forms.DataGridViewCellEventArgs
Public Sub New (columnIndex As Integer, rowIndex As Integer)

参数

columnIndex
Int32

列的索引,该列包含发生此事件的单元格。The index of the column containing the cell that the event occurs for.

rowIndex
Int32

行的索引,该行包含发生此事件的单元格。The index of the row containing the cell that the event occurs for.

异常

columnIndex 小于 -1。columnIndex is less than -1.

- 或 --or- rowIndex 小于 -1。rowIndex is less than -1.

适用于

另请参阅