AutoCompleteType 列挙体とは? わかりやすく解説

AutoCompleteType 列挙体

メモ : この列挙体は、.NET Framework version 2.0新しく追加されたものです。

TextBox コントロールAutoComplete 機能動作制御する値を表します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As AutoCompleteType
public enum AutoCompleteType
public enum class AutoCompleteType
public enum AutoCompleteType
public enum AutoCompleteType
メンバメンバ
 メンバ説明
BusinessCity勤務先住所都市カテゴリ。 
BusinessCountryRegion勤務先住所の国/地域カテゴリ。 
BusinessFax勤務先住所ファックス番号カテゴリ。 
BusinessPhone勤務先住所電話番号カテゴリ。 
BusinessState勤務先住所都道府県カテゴリ。 
BusinessStreetAddress勤務先住所番地カテゴリ。 
BusinessUrl会社Web サイトURLカテゴリ。 
BusinessZipCode勤務先住所郵便番号カテゴリ。 
Cellular携帯電話電話番号カテゴリ。 
Company社名カテゴリ。 
Department社内部署カテゴリ。 
DisabledTextBox コントロールAutoComplete 機能無効です。 
DisplayName表示するユーザー名カテゴリ。 
Emailユーザー電子メール アドレスカテゴリ。 
FirstNameユーザーの名のカテゴリ。 
Genderユーザー性別カテゴリ。 
HomeCity自宅住所都市カテゴリ。 
HomeCountryRegion自宅住所の国/地域カテゴリ。 
HomeFax自宅住所ファックス番号カテゴリ。 
HomepageWeb サイトURLカテゴリ。 
HomePhone自宅住所電話番号カテゴリ。 
HomeState自宅住所都道府県カテゴリ。 
HomeStreetAddress自宅住所番地カテゴリ。 
HomeZipCode自宅住所郵便番号カテゴリ。 
JobTitleユーザー職種カテゴリ。 
LastNameユーザーの姓のカテゴリ。 
MiddleNameユーザーミドル ネームカテゴリ。 
NoneTextBox コントロール関連付けられているカテゴリはありません。ID が同じである TextBox コントロールはすべて、同じ値リスト共有します。 
Notesカテゴリフォーム含め補足情報。 
Office事業所の所在地カテゴリ。 
Pagerポケットベル電話番号カテゴリ。 
SearchWeb ページまたは Web サイトカテゴリ検索するために使用するキーワード。 
解説解説

データ エントリを支援するために、Internet Explorer 5 以降および NetscapeAutoComplete呼ばれる機能サポートしますAutoComplete 機能テキスト ボックス監視しユーザー入力した値のリスト作成しますユーザー後でテキスト ボックスに戻ると、このリスト表示されます。ユーザー前に入力した値を再入力せずに、単にこのリストから値を選択できますTextBox コントロールAutoComplete 機能動作制御するには、AutoCompleteType プロパティ使用しますAutoCompleteType 列挙体は、AutoCompleteType プロパティ適用できる値を表すために使用されます。

メモメモ

AutoComplete 機能サポートしないブラウザあります使用するブラウザ互換性確認してください

既定では、TextBox コントロールAutoCompleteType プロパティAutoCompleteType.None設定されています。この設定では、TextBox コントロールは、同じ ID使用するその他の TextBox コントロールと、複数ページまたがってこのリスト共有しますID代わりにカテゴリ基づいてTextBox コントロール間でリスト共有することもできますAutoCompleteType プロパティいずれかカテゴリ値 (AutoCompleteType.FirstNameAutoCompleteType.LastName など) に設定すると、カテゴリが同じである TextBox コントロールのすべてが同じリスト共有しますTextBox コントロールAutoComplete 機能は、AutoCompleteType プロパティAutoCompleteType.Disabled設定して無効にできます

AutoComplete 機能設定する方法および有効にする方法詳細については、お使いブラウザマニュアル参照してください。たとえば、Internet Explorer Version 5 以降AutoComplete 機能有効にするには、[ツール] メニューの [インターネット オプション] をクリックします。次に、[コンテンツ] タブクリックします。[オートコンプリート] ボタンクリックしAutoComplete 機能に関するさまざまなブラウザ オプション表示および変更します

Internet ExplorerAutoComplete 機能の詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) で 「Using AutoComplete in HTML Forms」) のトピック検索してください

使用例使用例

AutoCompleteType 列挙体を使用してTextBox コントロールAutoComplete カテゴリ設定する方法の例を次に示します

<%@ Page Language="VB" %>
<html>
  <body>
    <form runat="server">
    
      <!-- You need to enable the AutoComplete feature on
 -->
      <!-- a browser that supports it (such as Internet   -->
      <!-- Explorer 5.0 and later) for this
 sample to     -->
      <!-- work. The AutoComplete lists are created after -->
      <!-- the Submit button is clicked.                  -->
    
      <h3>AutoCompleteType example</h3>
    
      Enter values in the text boxes and click
 the Submit <br/>
      button. <br/><br/> 
    
      <!-- The following TextBox controls have different  -->
      <!-- categories assigned to their AutoCompleteType  -->
      <!-- properties.                                    -->
      First Name:<br/>
      <asp:textbox id="FirstNameTextBox"
        autocompletetype="FirstName" 
        runat="server"/>
      <br/>
        
      Last Name:<br/>   
      <asp:textbox id="LastNameTextBox"
        autocompletetype="LastName" 
        runat="server"/>
      <br/>
      
      Email:<br/>   
      <asp:textbox id="EmailTextBox"
        autocompletetype="Email" 
        runat="server"/>
      <br/>
      
      <!-- The following TextBox controls have the same   -->
      <!-- categories assigned to their AutoCompleteType  -->
      <!-- properties. They share the same AutoComplete   -->
      <!-- list.                                          -->
      Phone Line #1:<br/>
      <asp:textbox id="Phone1TextBox"
        autocompletetype="HomePhone" 
        runat="server"/>
      <br/>
      
      Phone Line #2:<br/>
      <asp:textbox id="Phone2TextBox"
        autocompletetype="HomePhone" 
        runat="server"/>
      <br/>

    
      <!-- The following TextBox control has its          -->
      <!-- AutoCompleteType property set
 to               -->
      <!-- AutoCompleteType.None. All TextBox controls    -->
      <!-- with the same ID across different pages share  -->
      <!-- the same AutoComplete list.                    -->
      Category:<br/>   
      <asp:textbox id="CategoryTextBox"
        autocompletetype="None" 
        runat="server"/>
      <br/>
        
      <!-- The following TextBox control has the          -->
      <!-- AutoComplete feature disabled.                 -->
      Comments:<br/>   
      <asp:textbox id="CommentsTextBox"
        autocompletetype="Disabled" 
        runat="server"/>
      <br/>
      <br/><br/>  
      
      <asp:button id="SubmitButton"
        text="Submit"
        runat="Server"/>
    
    </form>
  </body>
</html>

<%@ Page Language="C#" %>
<html>
  <body>
    <form runat="server">
    
      <!-- You need to enable the AutoComplete feature on -->
      <!-- a browser that supports it (such as Internet   -->
      <!-- Explorer 5.0 and later) for this
 sample to     -->
      <!-- work. The AutoComplete lists are created after -->
      <!-- the Submit button is clicked.                  -->
    
      <h3>AutoCompleteType example</h3>
    
      Enter values in the text boxes and click the Submit <br/>
      button. <br/><br/> 
    
      <!-- The following TextBox controls have different  -->
      <!-- categories assigned to their AutoCompleteType  -->
      <!-- properties.                                    -->
      First Name:<br/>
      <asp:textbox id="FirstNameTextBox"
        autocompletetype="FirstName" 
        runat="server"/>
      <br/>
        
      Last Name:<br/>   
      <asp:textbox id="LastNameTextBox"
        autocompletetype="LastName" 
        runat="server"/>
      <br/>
      
      Email:<br/>   
      <asp:textbox id="EmailTextBox"
        autocompletetype="Email" 
        runat="server"/>
      <br/>
      
      <!-- The following TextBox controls have the same   -->
      <!-- categories assigned to their AutoCompleteType  -->
      <!-- properties. They share the same AutoComplete   -->
      <!-- list.                                          -->
      Phone Line #1:<br/>
      <asp:textbox id="Phone1TextBox"
        autocompletetype="HomePhone" 
        runat="server"/>
      <br/>
      
      Phone Line #2:<br/>
      <asp:textbox id="Phone2TextBox"
        autocompletetype="HomePhone" 
        runat="server"/>
      <br/>

    
      <!-- The following TextBox control has its          -->
      <!-- AutoCompleteType property set to               -->
      <!-- AutoCompleteType.None. All TextBox controls    -->
      <!-- with the same ID across different pages share  -->
      <!-- the same AutoComplete list.                    -->
      Category:<br/>   
      <asp:textbox id="CategoryTextBox"
        autocompletetype="None" 
        runat="server"/>
      <br/>
        
      <!-- The following TextBox control has the          -->
      <!-- AutoComplete feature disabled.                 -->
      Comments:<br/>   
      <asp:textbox id="CommentsTextBox"
        autocompletetype="Disabled" 
        runat="server"/>
      <br/>
      <br/><br/>  
      
      <asp:button id="SubmitButton"
        text="Submit"
        runat="Server"/>
    
    </form>
  </body>
</html>

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「AutoCompleteType 列挙体」の関連用語

AutoCompleteType 列挙体のお隣キーワード
検索ランキング

   

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



AutoCompleteType 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS