TabAlignment Sabit listesi

Tanım

Sekme denetimindeki sekmelerin konumlarını belirtir.

public enum class TabAlignment
public enum TabAlignment
type TabAlignment = 
Public Enum TabAlignment
Devralma
TabAlignment

Alanlar

Name Değer Description
Top 0

Sekmeler denetimin üst kısmında bulunur.

Bottom 1

Sekmeler denetimin alt kısmında bulunur.

Left 2

Sekmeler denetimin sol kenarı boyunca bulunur.

Right 3

Sekmeler denetimin sağ kenarında bulunur.

Örnekler

Aşağıdaki kod örneği, ve TabControl.Alignment özelliklerinin ve TabControl.AppearanceTabAlignment numaralandırmalarının nasıl kullanılacağını TabAppearance gösterir. Örneği çalıştırmak için aşağıdaki kodu TabControl1 adlı bir TabControl formun içinde yapıştırın. Formun oluşturucusunda veya Load yönteminde ChangeTheLookOfTheTabControl yöntemini çağırın.

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

Açıklamalar

Bu numaralandırma gibi TabControl.Alignmentüyeler tarafından kullanılır.

Şunlara uygulanır

Ayrıca bkz.