TabAppearance 列挙型

定義

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

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

フィールド

Buttons 1

タブには、3D ボタンの外観が設定されています。

FlatButtons 2

タブには、フラットなボタンの外観が設定されています。

Normal 0

タブには、標準の外観が設定されています。

次のコード例では、 プロパティと 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.Appearanceメンバーによって使用されます。

適用対象

こちらもご覧ください