DataGrid.CurrentCell プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Property CurrentCell As DataGridCell
Dim instance As DataGrid Dim value As DataGridCell value = instance.CurrentCell instance.CurrentCell = value
public DataGridCell CurrentCell { get; set; }
/** @property */ public DataGridCell get_CurrentCell () /** @property */ public void set_CurrentCell (DataGridCell value)
public function get CurrentCell () : DataGridCell public function set CurrentCell (value : DataGridCell)
フォーカスがある DataGridCell。


現在のセルを設定または取得する方法を次のコード例に示します。
Private Sub SetCellWithFocus(ByVal myGrid As DataGrid) ' Set the current cell to cell 1, row 1. myGrid.CurrentCell = New DataGridCell(1,1) End Sub Private Sub DataGrid1_GotFocus(ByVal Sender As Object, ByVal e As EventArgs) Console.WriteLine(DataGrid1.CurrentCell.ColumnNumber & " " & _ DataGrid1.CurrentCell.RowNumber) End Sub
private void SetCellWithFocus(DataGrid myGrid) { // Set the current cell to cell1, row 1. myGrid.CurrentCell = new DataGridCell(1,1); } private void dataGrid1_GotFocus(object sender, EventArgs e) { Console.WriteLine(dataGrid1.CurrentCell.ColumnNumber + " " + dataGrid1.CurrentCell.RowNumber); }
private: void SetCellWithFocus( DataGrid^ myGrid ) { // Set the current cell to cell1, row 1. myGrid->CurrentCell = DataGridCell( 1, 1 ); } void dataGrid1_GotFocus( Object^ /*sender*/, EventArgs^ /*e*/ ) { Console::WriteLine( "{0} {1}", dataGrid1->CurrentCell.ColumnNumber , dataGrid1->CurrentCell.RowNumber ); }
private void SetCellWithFocus(DataGrid myGrid) { // Set the current cell to cell1, row 1. myGrid.set_CurrentCell(new DataGridCell(1, 1)); } //SetCellWithFocus private void dataGrid1_GotFocus(Object sender, EventArgs e) { Console.WriteLine(dataGrid1.get_CurrentCell().get_ColumnNumber() + " " + dataGrid1.get_CurrentCell().get_RowNumber()); } //dataGrid1_GotFocus

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGrid.CurrentCell プロパティを検索する場合は、下記のリンクをクリックしてください。

- DataGrid.CurrentCell プロパティのページへのリンク