DataGridCell(Int32, Int32) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe DataGridCell.
public:
DataGridCell(int r, int c);
public DataGridCell (int r, int c);
new System.Windows.Forms.DataGridCell : int * int -> System.Windows.Forms.DataGridCell
Public Sub New (r As Integer, c As Integer)
Paramètres
Exemples
L’exemple suivant crée une DataGridCell instance et définit la nouvelle instance sur System.Windows.Forms.DataGrid le CurrentCell contrôle.
private:
void SetCell()
{
// Set the focus to the cell specified by the DataGridCell.
DataGridCell dc;
dc.RowNumber = 1;
dc.ColumnNumber = 1;
dataGrid1->CurrentCell = dc;
}
private void SetCell()
{
// Set the focus to the cell specified by the DataGridCell.
DataGridCell dc = new DataGridCell();
dc.RowNumber = 1;
dc.ColumnNumber = 1;
dataGrid1.CurrentCell = dc;
}
Private Sub SetCell()
' Set the focus to the cell specified by the DataGridCell.
Dim dc As DataGridCell
dc.RowNumber = 1
dc.ColumnNumber = 1
DataGrid1.CurrentCell = dc
End Sub