TabAlignment Enumeráció

Definíció

A tabulátor vezérlőelem lapfüleinek helyét adja meg.

public enum class TabAlignment
public enum TabAlignment
type TabAlignment = 
Public Enum TabAlignment
Öröklődés
TabAlignment

Mezők

Name Érték Description
Top 0

A fülek a vezérlőelem tetején találhatók.

Bottom 1

A fülek a vezérlőelem alján találhatók.

Left 2

A fülek a vezérlőelem bal szélén találhatók.

Right 3

A fülek a vezérlő jobb szélén találhatók.

Példák

Az alábbi példakód bemutatja, hogyan használhatja a TabControl.Alignment tulajdonságokat és TabControl.Appearance az TabAlignmentTabAppearance enumerálásokat. A példa futtatásához illessze be a következő kódot egy TabControl TabControl1 nevű űrlapba. Hívja meg a ChangeTheLookOfTheTabControl metódust az űrlap konstruktorában vagy Load metódusában.

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

Megjegyzések

Ezt az enumerálást olyan tagok használják, mint a TabControl.Alignment.

A következőre érvényes:

Lásd még