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

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

ToolStripComboBox.AutoCompleteCustomSource プロパティ

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

AutoCompleteSource プロパティが CustomSource に設定されている場合使用するカスタム文字列コレクション取得または設定します

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

<LocalizableAttribute(True)> _
Public Property AutoCompleteCustomSource As
 AutoCompleteStringCollection
Dim instance As ToolStripComboBox
Dim value As AutoCompleteStringCollection

value = instance.AutoCompleteCustomSource

instance.AutoCompleteCustomSource = value
[LocalizableAttribute(true)] 
public AutoCompleteStringCollection AutoCompleteCustomSource {
 get; set; }
[LocalizableAttribute(true)] 
public:
property AutoCompleteStringCollection^ AutoCompleteCustomSource {
    AutoCompleteStringCollection^ get ();
    void set (AutoCompleteStringCollection^
 value);
}
/** @property */
public AutoCompleteStringCollection get_AutoCompleteCustomSource
 ()

/** @property */
public void set_AutoCompleteCustomSource (AutoCompleteStringCollection
 value)
public function get AutoCompleteCustomSource
 () : AutoCompleteStringCollection

public function set AutoCompleteCustomSource
 (value : AutoCompleteStringCollection)

プロパティ
文字列格納している AutoCompleteStringCollection。

解説解説

入力されプレフィックスを、あらかじめ用意されすべての文字列プレフィックス比較することによって入力文字列自動的に補完する ToolStripComboBox を作成するには、AutoCompleteCustomSource、AutoCompleteMode、AutoCompleteSource の各プロパティ使用します。これは、URLアドレスファイル名コマンド入力などによく使用される ToolStripComboBox コントロール有用です。

AutoCompleteCustomSource プロパティ使用オプションですが、AutoCompleteCustomSource使用するためには、AutoCompleteSource プロパティCustomSource設定する必要があります

AutoCompleteMode プロパティAutoCompleteSource プロパティ一緒に使用する必要があります

使用例使用例

ToolStripComboBox対しAutoCompleteCustomSource プロパティなど、各種プロパティ設定するための構文次のコード例示します

' 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;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolStripComboBox クラス
ToolStripComboBox メンバ
System.Windows.Forms 名前空間
AutoCompleteMode
AutoCompleteSource


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

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

辞書ショートカット

すべての辞書の索引

「ToolStripComboBox.AutoCompleteCustomSource プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS