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

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

DataGridTableStyle.DataGrid プロパティ

描画されテーブルの System.Windows.Forms.DataGrid コントロール取得または設定します

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

Public Overridable Property
 DataGrid As DataGrid
Dim instance As DataGridTableStyle
Dim value As DataGrid

value = instance.DataGrid

instance.DataGrid = value
public virtual DataGrid DataGrid { get; set;
 }
public:
virtual property DataGrid^ DataGrid {
    DataGrid^ get ();
    void set (DataGrid^ value);
}
/** @property */
public DataGrid get_DataGrid ()

/** @property */
public void set_DataGrid (DataGrid value)
public function get DataGrid
 () : DataGrid

public function set DataGrid
 (value : DataGrid)

プロパティ
テーブル表示する System.Windows.Forms.DataGrid コントロール

解説解説

System.Windows.Forms.DataGrid コントロールは、グリッド形式データ表示します。DataGridTableStyle は描画されグリッドを表すオブジェクトです。System.Windows.Forms.DataGrid プロパティは、グリッド表示しているコントロールへの参照返します

DataGrid プロパティは、DataGridTableStyleSystem.Windows.Forms.DataGrid コントロールの GridTableStylesCollection に追加されたときに設定されます。このプロパティ自分設定することは避けてください。ただし、このプロパティオーバーライドし、DataGrid コントロール組み込まれユーザー コントロールデザイナ作成している場合除きます

使用例使用例

DataGridTableStyle表示する System.Windows.Forms.DataGridCurrentCell出力するコード例次に示します

Private Sub GetSelectedIndex(myGridTable As
 DataGridTableStyle)
    ' Get the name of the DataGrid of the DataGridTable 
    ' passed as an argument. 
    Console.WriteLine(myGridTable.DataGrid.CurrentCell.ToString())
End Sub 'GetSelectedIndex
private void GetSelectedIndex(DataGridTableStyle
 myGridTable)
{
   /* Get the name of the DataGrid of the DataGridTable 
      passed as an argument. */
   Console.WriteLine(myGridTable.DataGrid.CurrentCell.ToString());
}

private:
   void GetSelectedIndex( DataGridTableStyle^ myGridTable )
   {
      /* Get the name of the DataGrid of the DataGridTable 
         passed as an argument. */
      Console::WriteLine( myGridTable->DataGrid->CurrentCell.ToString() );
   }
private void GetSelectedIndex(DataGridTableStyle
 myGridTable)
{
    /*  Get the name of the DataGrid of the DataGridTable 
        passed as an argument. 
     */
    Console.WriteLine(myGridTable.get_DataGrid().
        get_CurrentCell().ToString());
} //GetSelectedIndex
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2024 GRAS Group, Inc.RSS