Este tema aún no ha recibido ninguna valoración - Valorar este tema

TabAlignment (Enumeración)

Actualización: noviembre 2007

Especifica las ubicaciones de las fichas de un control de fichas.

Espacio de nombres:  System.Windows.Forms
Ensamblado:  System.Windows.Forms (en System.Windows.Forms.dll)
public enum TabAlignment
public enum TabAlignment
public enum TabAlignment
Nombre de miembro Descripción
Top Las fichas se ubican a lo largo de la parte superior del control.
Bottom Las fichas se ubican a lo largo de la parte inferior del control.
Left Las fichas se ubican a lo largo del borde izquierdo del control.
Right Las fichas se ubican a lo largo del borde derecho del control.

Miembros como TabControl.Alignment utilizan esta enumeración.

En el ejemplo de código siguiente se muestra cómo puede utilizar las propiedades TabControl.Alignment y TabControl.Appearance y 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.

.NET Framework

Compatible con: 3.5, 3.0, 2.0, 1.1, 1.0
¿Le ha resultado útil?
(Caracteres restantes: 1500)
Contenido de la comunidad Agregar