TabAlignment 列挙型

定義

タブ コントロールのタブの位置を指定します。

public enum class TabAlignment
public enum TabAlignment
type TabAlignment = 
Public Enum TabAlignment
継承
TabAlignment

フィールド

Bottom 1

タブはコントロールの下部に配置されています。

Left 2

タブはコントロールの左端に配置されています。

Right 3

タブはコントロールの右端に配置されています。

Top 0

タブはコントロールの上部に配置されています。

次のコード例では、and プロパティとTabControl.Appearance列挙型のTabControl.Alignment使用方法をTabAlignmentTabAppearance示します。 この例を実行するには、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メンバーによって使用されます。

適用対象

こちらもご覧ください