ListBox.UseTabStops 속성

정의

ListBox에서 해당 문자열을 그릴 때 탭 문자를 인식하고 확장할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool UseTabStops { bool get(); void set(bool value); };
public bool UseTabStops { get; set; }
member this.UseTabStops : bool with get, set
Public Property UseTabStops As Boolean

속성 값

Boolean

컨트롤에서 탭 문자를 확장할 수 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 코드 예제에서는 탭 문자가 있는 항목을 표시하는 항목을 만드는 ListBox 방법을 보여 줍니다.

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.Items.Add("Item\t" + x.ToString());
    }
    // Make the ListBox display tabs within each item.
    listBox1.UseTabStops = true;
    this.Controls.Add(listBox1);
}
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

적용 대상