TabAlignment 열거형

정의

탭 컨트롤의 탭 위치를 지정합니다.

public enum class TabAlignment
public enum TabAlignment
type TabAlignment = 
Public Enum TabAlignment
상속
TabAlignment

필드

Name Description
Top 0

탭은 컨트롤의 위쪽에 있습니다.

Bottom 1

탭은 컨트롤의 아래쪽에 있습니다.

Left 2

탭은 컨트롤의 왼쪽 가장자리를 따라 있습니다.

Right 3

탭은 컨트롤의 오른쪽 가장자리를 따라 있습니다.

예제

다음 코드 예제에서는 및 속성 및 TabControl.Alignment 열거형을 TabControl.AppearanceTabAlignment 사용 TabAppearance 하는 방법을 보여 줍니다. 예제를 실행하려면 다음 코데인에 TabControl1이라는 형식을 TabControl 붙여넣습니다. 폼의 생성자 또는 Load 메서드에서 ChangeTheLookOfTheTabControl 메서드를 호출합니다.

private:
   void ChangeTheLookOfTheTabControl()
   {
      // Set the size and location of the TabControl.
      this->TabControl1->Location = System::Drawing::Point( 20, 20 );
      TabControl1->Size = System::Drawing::Size( 250, 250 );
      
      // Align the tabs along the bottom of the control.
      TabControl1->Alignment = TabAlignment::Bottom;
      
      // Change the tabs to flat buttons.
      TabControl1->Appearance = TabAppearance::FlatButtons;
   }
private void ChangeTheLookOfTheTabControl()
{

    // Set the size and location of the TabControl.
    this.TabControl1.Location = new System.Drawing.Point(20, 20);
    TabControl1.Size = new System.Drawing.Size(250, 250);

    // Align the tabs along the bottom of the control.
    TabControl1.Alignment = TabAlignment.Bottom;

    // Change the tabs to flat buttons.
    TabControl1.Appearance = TabAppearance.FlatButtons;
}
Private Sub ChangeTheLookOfTheTabControl()

    ' Set the size and location of the TabControl.
    Me.TabControl1.Location = New System.Drawing.Point(20, 20)
    TabControl1.Size = New System.Drawing.Size(250, 250)

    ' Align the tabs along the bottom of the control.
    TabControl1.Alignment = TabAlignment.Bottom

    ' Change the tabs to flat buttons.
    TabControl1.Appearance = TabAppearance.FlatButtons
End Sub

설명

이 열거형은 다음과 같은 TabControl.Alignment멤버에서 사용됩니다.

적용 대상

추가 정보