DataGridViewRowContextMenuStripNeededEventArgs(Int32) 构造函数

定义

初始化 DataGridViewRowContextMenuStripNeededEventArgs 类的新实例。

public:
 DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex);
public DataGridViewRowContextMenuStripNeededEventArgs (int rowIndex);
new System.Windows.Forms.DataGridViewRowContextMenuStripNeededEventArgs : int -> System.Windows.Forms.DataGridViewRowContextMenuStripNeededEventArgs
Public Sub New (rowIndex As Integer)

参数

rowIndex
Int32

行的索引。

例外

rowIndex 小于 -1。

注解

此构造函数使用 rowIndex 参数值初始化 RowIndex 属性。

适用于

另请参阅