ToolStripComboBox.DropDownStyle プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
 構文
構文Dim instance As ToolStripComboBox Dim value As ComboBoxStyle value = instance.DropDownStyle instance.DropDownStyle = value
public: property ComboBoxStyle DropDownStyle { ComboBoxStyle get (); void set (ComboBoxStyle value); }
/** @property */ public ComboBoxStyle get_DropDownStyle () /** @property */ public void set_DropDownStyle (ComboBoxStyle value)
public function get DropDownStyle () : ComboBoxStyle public function set DropDownStyle (value : ComboBoxStyle)
ComboBoxStyle 値の 1 つ。既定値は DropDown です。
 解説
解説DropDownStyle プロパティは、ユーザーに表示されるインターフェイスを制御します。値を入力して、単純なドロップダウン (リストが常に表示される)、ドロップダウン リスト ボックス (テキスト部分が編集できず、リストを表示するには矢印をクリックする必要がある)、または既定のドロップダウン リスト ボックス (テキスト部分が編集でき、リストを表示するには方向キーを押す必要がある) を設定できます。ユーザーが編集できないリストを常に表示するには、ListBox コントロールを使用します。
 使用例
使用例ToolStripComboBox に対し、DropDownStyle プロパティなど、各種のプロパティを設定するための構文を次のコード例に示します。
' The following code example demonstrates the syntax for setting ' various ToolStripComboBox properties. ' toolStripComboBox1.AutoCompleteCustomSource.AddRange(New String() {"aaa", "bbb", "ccc"}) toolStripComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend toolStripComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource toolStripComboBox1.DropDownHeight = 110 toolStripComboBox1.DropDownWidth = 122 toolStripComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Standard toolStripComboBox1.IntegralHeight = False toolStripComboBox1.Items.AddRange(New Object() {"xxx", "yyy", "zzz"}) toolStripComboBox1.MaxDropDownItems = 9 toolStripComboBox1.MergeAction = System.Windows.Forms.MergeAction.Insert toolStripComboBox1.Name = "toolStripComboBox1" toolStripComboBox1.Size = New System.Drawing.Size(121, 25) toolStripComboBox1.Sorted = True
// The following code example demonstrates the syntax for setting // various ToolStripComboBox properties. // toolStripComboBox1.AutoCompleteCustomSource.AddRange(new string[] { "aaa", "bbb", "ccc"}); toolStripComboBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; toolStripComboBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; toolStripComboBox1.DropDownHeight = 110; toolStripComboBox1.DropDownWidth = 122; toolStripComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Standard; toolStripComboBox1.IntegralHeight = false; toolStripComboBox1.Items.AddRange(new object[] { "xxx", "yyy", "zzz"}); toolStripComboBox1.MaxDropDownItems = 9; toolStripComboBox1.MergeAction = System.Windows.Forms.MergeAction.Insert; toolStripComboBox1.Name = "toolStripComboBox1"; toolStripComboBox1.Size = new System.Drawing.Size(121, 25); toolStripComboBox1.Sorted = true;
 プラットフォーム
プラットフォーム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に収録されているすべての辞書からToolStripComboBox.DropDownStyle プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からToolStripComboBox.DropDownStyle プロパティ
                    を検索
                     全ての辞書からToolStripComboBox.DropDownStyle プロパティ
                    を検索
                - ToolStripComboBox.DropDownStyle プロパティのページへのリンク

 
                             
                    


