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

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

DataGridViewComboBoxCell.DisplayStyle プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

編集モードでないときにコンボ ボックス表示する方法決定する値を取得または設定します

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

Public Property DisplayStyle As
 DataGridViewComboBoxDisplayStyle
Dim instance As DataGridViewComboBoxCell
Dim value As DataGridViewComboBoxDisplayStyle

value = instance.DisplayStyle

instance.DisplayStyle = value
public DataGridViewComboBoxDisplayStyle DisplayStyle { get;
 set; }
public:
property DataGridViewComboBoxDisplayStyle DisplayStyle {
    DataGridViewComboBoxDisplayStyle get ();
    void set (DataGridViewComboBoxDisplayStyle
 value);
}
/** @property */
public DataGridViewComboBoxDisplayStyle get_DisplayStyle ()

/** @property */
public void set_DisplayStyle (DataGridViewComboBoxDisplayStyle
 value)
public function get DisplayStyle
 () : DataGridViewComboBoxDisplayStyle

public function set DisplayStyle
 (value : DataGridViewComboBoxDisplayStyle)

プロパティ
DataGridViewComboBoxDisplayStyle 値の 1 つ既定値は DropDownButton です。

例外例外
例外種類条件

InvalidEnumArgumentException

このプロパティ設定時に指定された値が、有効な DataGridViewComboBoxDisplayStyle 値ではありません。

解説解説

DisplayStyle プロパティは、セル読み取り専用であるかどうかに関係なく、編集モード以外のセル外観影響しますセル編集モードのときは、常に ComboBox コントロールのように表示されます。

DisplayStyleForCurrentCellOnly プロパティの値が true場合DisplayStyle プロパティは、現在のセルにのみ影響します

ドロップダウン矢印動作外観は、FlatStyle プロパティによって指定されます。

マウス ポインタセル上に置かれたときにセル強調表示するには、DisplayStyle プロパティComboBox設定しFlatStyle プロパティPopup設定する必要があります

セル所有している列の DisplayStyle プロパティ設定すると、その列に含まれるすべてのセルDisplayStyle プロパティ設定され、列の表示更新されます。セル指定した値をオーバーライドするには、列の値を設定してからセルの値を設定します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewComboBoxCell クラス
DataGridViewComboBoxCell メンバ
System.Windows.Forms 名前空間
FlatStyle
DataGridView クラス



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

辞書ショートカット

すべての辞書の索引

「DataGridViewComboBoxCell.DisplayStyle プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS