DataGrid.CurrentCell プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGrid.CurrentCell プロパティの意味・解説 

DataGrid.CurrentCell プロパティ

フォーカスがあるセル取得または設定しますデザイン時には使用できません。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As DataGrid
Dim value As DataGridCell

value = instance.CurrentCell

instance.CurrentCell = value
public DataGridCell CurrentCell { get; set;
 }
public:
property DataGridCell CurrentCell {
    DataGridCell get ();
    void set (DataGridCell value);
}
/** @property */
public DataGridCell get_CurrentCell ()

/** @property */
public void set_CurrentCell (DataGridCell value)

プロパティ
フォーカスがある 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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGrid クラス
DataGrid メンバ
System.Windows.Forms 名前空間
DataGridCell
FirstVisibleColumn


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGrid.CurrentCell プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGrid.CurrentCell プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGrid.CurrentCell プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DataGrid.CurrentCell プロパティ」の関連用語

DataGrid.CurrentCell プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGrid.CurrentCell プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS