Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações. |
Tradução
Original
|
Enumeração TabAlignment
Especifica os locais das guias em um controle guia.
Assembly: System.Windows.Forms (em System.Windows.Forms.dll)
Essa enumeração é usada por membros, sistema autônomo TabControl.Alignment.
O exemplo de código a seguir demonstra como usar o TabControl.Alignment e TabControl.Appearance propriedades e o TabAlignment e TabAppearance enumerações. Para executar o exemplo, cole codein seguir um formulário que contém um TabControl chamada TabControl1. Chame o método ChangeTheLookOfTheTabControl no construtor do formulário ou o método Load.
privatevoid 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
o.NET Framework e.NET Compact Framework não oferecem suporte a todas as versões de cada plataforma. Para obter uma lista de versões suportadas, consulte Requisitos de sistema do .NET framework.