TabAlignment 열거형
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
탭 컨트롤의 탭 위치를 지정합니다.
public enum class TabAlignment
public enum TabAlignment
type TabAlignment =
Public Enum 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멤버에서 사용됩니다.