TabAppearance Výčet

Definice

Určuje vzhled karet v ovládacím prvku karty.

public enum class TabAppearance
public enum TabAppearance
type TabAppearance = 
Public Enum TabAppearance
Dědičnost
TabAppearance

Pole

Buttons 1

Karty mají vzhled třírozměrných tlačítek.

FlatButtons 2

Karty mají vzhled plochých tlačítek.

Normal 0

Karty mají standardní vzhled karet.

Příklady

Následující příklad kódu ukazuje, jak používat TabControl.Alignment a TabControl.Appearance vlastnosti a TabAlignment TabAppearance výčty. Pokud chcete spustit příklad, vložte následující kód do formuláře obsahujícího TabControl název TabControl1. Volání ChangeTheLookOfTheTabControl metoda v konstruktoru formuláře nebo Load metoda.

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

Poznámky

Tento výčet používá členové, jako TabControl.Appearanceje .

Platí pro

Viz také