TabAppearance (Enumeración)
Actualización: noviembre 2007
Especifica la apariencia de las fichas de un control de fichas.
Ensamblado: System.Windows.Forms (en System.Windows.Forms.dll)
Miembros como TabControl.Appearance utilizan esta enumeración.
En el siguiente ejemplo de código se muestra cómo usar las propiedades TabControl.Alignment y TabControl.Appearance así como las enumeraciones TabAlignment y TabAppearance. Para ejecutar el ejemplo, pegue el siguiente código en un formulario que contenga un TabControl denominado TabControl1. Llame al método ChangeTheLookOfTheTabControl desde el constructor del formulario o el método Load.
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 void ChangeTheLookOfTheTabControl()
{
// Set the size and location of the TabControl.
this.tabControl1.set_Location(new System.Drawing.Point(20, 20));
tabControl1.set_Size(new System.Drawing.Size(250, 250));
// Align the tabs along the bottom of the control.
tabControl1.set_Alignment(TabAlignment.Bottom);
// Change the tabs to flat buttons.
tabControl1.set_Appearance(TabAppearance.FlatButtons);
} //ChangeTheLookOfTheTabControl
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.