TabItem.TabStripPlacement 屬性

定義

取得索引標籤區域的位置。

public:
 property System::Windows::Controls::Dock TabStripPlacement { System::Windows::Controls::Dock get(); };
public System.Windows.Controls.Dock TabStripPlacement { get; }
member this.TabStripPlacement : System.Windows.Controls.Dock
Public ReadOnly Property TabStripPlacement As Dock

屬性值

Dock

其中一個 Dock 值。 預設為 Top

範例

下列範例示範如何擷取 TabStripPlacement 的相關資訊 TabItem

if(tabItem1.TabStripPlacement == Dock.Left)
  {
   btnPlacement.Content = "TabItems are placed on the left";
  }
If tabItem1.TabStripPlacement = Dock.Left Then
    btnPlacement.Content = "TabItems are placed on the left"
End If

備註

無法設定這個屬性。 它會從 TabControl.TabStripPlacementTabControl 的 屬性取得其值。

相依性屬性資訊

識別碼欄位 TabStripPlacementProperty
中繼資料屬性設定為 true

適用於