TabAppearance Enum
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee geeft u het uiterlijk van de tabbladen in een tab besturingselement.
public enum class TabAppearance
public enum TabAppearance
type TabAppearance =
Public Enum TabAppearance
- Overname
Velden
| Name | Waarde | Description |
|---|---|---|
| Normal | 0 | De tabbladen hebben de standaardweergave van tabbladen. |
| Buttons | 1 | De tabbladen hebben het uiterlijk van driedimensionale knoppen. |
| FlatButtons | 2 | De tabbladen hebben het uiterlijk van platte knoppen. |
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.Appearance.