TabAlignment Enum

Definitie

Hiermee geeft u de locaties van de tabbladen in een tabblad besturingselement.

public enum class TabAlignment
public enum TabAlignment
type TabAlignment = 
Public Enum TabAlignment
Overname
TabAlignment

Velden

Name Waarde Description
Top 0

De tabbladen bevinden zich boven aan het besturingselement.

Bottom 1

De tabbladen bevinden zich onder aan het besturingselement.

Left 2

De tabbladen bevinden zich aan de linkerkant van het besturingselement.

Right 3

De tabbladen bevinden zich aan de rechterkant van het besturingselement.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de TabControl.Alignment eigenschappen en TabControl.Appearance opsommingen en TabAlignment eigenschappen TabAppearance gebruikt. Als u het voorbeeld wilt uitvoeren, plakt u de volgende code in een formulier met de TabControl naam TabControl1. Roep de methode ChangeTheLookOfTheTabControl aan in de constructor of loadmethode van het formulier.

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

Opmerkingen

Deze opsomming wordt gebruikt door leden zoals TabControl.Alignment.

Van toepassing op

Zie ook