TabAlignment Enumeração
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Especifica a localização dos separadores num controlo de separador.
public enum class TabAlignment
public enum TabAlignment
type TabAlignment =
Public Enum TabAlignment
- Herança
Campos
| Name | Valor | Description |
|---|---|---|
| Top | 0 | Os separadores estão localizados na parte superior do controlo. |
| Bottom | 1 | As abas estão localizadas na parte inferior do controlo. |
| Left | 2 | As abas estão localizadas ao longo da borda esquerda do controlo. |
| Right | 3 | As abas estão localizadas ao longo da borda direita do controlo. |
Exemplos
O exemplo de código seguinte demonstra como usar as TabControl.Alignment propriedades e TabControl.AppearanceTabAlignment as enumerações e TabAppearance . Para executar o exemplo, cole o seguinte código num formulário contendo um TabControl chamado TabControl1. Chame o método ChangeTheLookOfTheTabControl no construtor do formulário ou no 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
Observações
Esta enumeração é usada por membros como TabControl.Alignment.