TabAppearance Wyliczenie

Definicja

Określa wygląd kart w kontrolce karty.

public enum class TabAppearance
public enum TabAppearance
type TabAppearance = 
Public Enum TabAppearance
Dziedziczenie
TabAppearance

Pola

Buttons 1

Karty mają wygląd przycisków trójwymiarowych.

FlatButtons 2

Karty mają wygląd płaskich przycisków.

Normal 0

Karty mają standardowy wygląd kart.

Przykłady

W poniższym przykładzie kodu pokazano, jak używać TabControl.Alignment właściwości i TabControl.Appearance oraz TabAlignment wyliczenia i TabAppearance . Aby uruchomić przykład, wklej następujący kod w formularzu zawierającym TabControl nazwę TabControl1. Wywołaj metodę ChangeTheLookOfTheTabControl w konstruktorze formularza lub metodzie Load.

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

Uwagi

To wyliczenie jest używane przez elementy członkowskie, takie jak TabControl.Appearance.

Dotyczy

Zobacz też