TabAppearance 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定索引標籤控制項 (Tab Control) 中索引標籤的外觀。
public enum class TabAppearance
public enum TabAppearance
type TabAppearance =
Public Enum TabAppearance
- 繼承
欄位
Buttons | 1 | 索引標籤具有 3D 按鈕的外觀。 |
FlatButtons | 2 | 索引標籤具有平面按鈕的外觀。 |
Normal | 0 | 索引標籤具有索引標籤的標準外觀。 |
範例
下列程式碼範例示範如何使用 TabControl.Alignment 和 TabControl.Appearance 屬性和 和 TabAlignmentTabAppearance 列舉。 若要執行此範例,請將下列程式碼貼到包含名為 TabControl1 的 TabControl 表單中。 在表單的建構函式或 Load 方法中呼叫 ChangeTheLookOfTheTabControl 方法。
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
備註
這類成員 TabControl.Appearance 會使用此列舉。