DataGridCell(Int32, Int32) コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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)
パラメーター
例
次の例では、 をDataGridCell作成し、新しいインスタンスを コントロールの の System.Windows.Forms.DataGrid にCurrentCell設定します。
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
適用対象
こちらもご覧ください
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET