TabAppearance Enumeración
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Especifica la apariencia de las fichas de un control de fichas.
public enum class TabAppearance
public enum TabAppearance
type TabAppearance =
Public Enum TabAppearance
- Herencia
Nombre | Valor | Description |
---|---|---|
Buttons | 1 | Las fichas tienen la apariencia de botones tridimensionales. |
FlatButtons | 2 | Las fichas tienen el aspecto de botones planos. |
Normal | 0 | Las fichas tienen la apariencia estándar de fichas. |
En el ejemplo de código siguiente se muestra cómo usar las TabControl.Alignment propiedades y TabControl.Appearance y las TabAlignment enumeraciones y TabAppearance . Para ejecutar el ejemplo, pegue el código siguiente en un formulario que contiene un TabControl elemento denominado TabControl1. Llame al método ChangeTheLookOfTheTabControl en el constructor del formulario o en el método 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
Esta enumeración la usan los miembros como TabControl.Appearance.
Producto | Versiones |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: