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

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

ListBox.UseTabStops プロパティ

ListBox文字列描画するときにタブ文字認識して展開するかどうかを示す値を取得または設定します

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

Dim instance As ListBox
Dim value As Boolean

value = instance.UseTabStops

instance.UseTabStops = value
public bool UseTabStops { get;
 set; }
public:
property bool UseTabStops {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_UseTabStops ()

/** @property */
public void set_UseTabStops (boolean value)

プロパティ
コントロールタブ文字展開できる場合trueそれ以外場合false既定値true です。

使用例使用例

項目とタブ文字表示する ListBox作成する方法次のコード例示します

Private Sub CreateTabStopList()
    Dim listBox1 As New
 ListBox()
    listBox1.SetBounds(20, 20, 100, 100)

    Dim x As Integer
    For x = 1 To 19
        listBox1.Items.Add(("Item" + ControlChars.Tab
 + x.ToString()))
    Next x
    ' Make the ListBox display tabs within each item.
    listBox1.UseTabStops = True
    Me.Controls.Add(listBox1)
End Sub
private void CreateTabStopList()
{
    ListBox listBox1 = new ListBox();
    listBox1.SetBounds(20,20,100,100);

    for(int x = 1; x < 20;x++)
    {
        listBox1.Items.Add("Item\t" + x.ToString());
    }
    // Make the ListBox display tabs within each item.
    listBox1.UseTabStops = true;
    this.Controls.Add(listBox1);
}
private:
   void CreateTabStopList()
   {
      ListBox^ listBox1 = gcnew ListBox;
      listBox1->SetBounds( 20, 20, 100, 100 );
      for ( int x = 1; x < 20; x++ )
      {
         listBox1->Items->Add( String::Concat( "Item\t", x ) );
      }
      listBox1->UseTabStops = true;
      this->Controls->Add( listBox1 );
   }
private void CreateTabStopList()
{
    ListBox listBox1 = new ListBox();
    listBox1.SetBounds(20, 20, 100, 100);

    for (int x = 1; x < 20; x++) {
        listBox1.get_Items().Add("Item\t" + Convert.ToString(x));
    }
    // Make the ListBox display tabs within each item.
    listBox1.set_UseTabStops(true);
    this.get_Controls().Add(listBox1);
} //CreateTabStopList
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS