Share via


TabControl.TabStripPlacement 屬性

定義

取得或設定索引標籤標題相對於索引標籤內容的對齊方式。

public:
 property System::Windows::Controls::Dock TabStripPlacement { System::Windows::Controls::Dock get(); void set(System::Windows::Controls::Dock value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Controls.Dock TabStripPlacement { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.TabStripPlacement : System.Windows.Controls.Dock with get, set
Public Property TabStripPlacement As Dock

屬性值

Dock

對應於索引標籤內容的索引標籤標頭對齊。 預設為 Top

屬性

範例

下列範例會建立索引標籤控制項,將索引標籤放在左側。

<TabControl TabStripPlacement="Left" Margin="0, 0, 0, 10">
  <TabItem Name="fontweight" Header="FontWeight">
    <TabItem.Content>
      <TextBlock TextWrapping="WrapWithOverflow">
        FontWeight property information goes here.
      </TextBlock>
    </TabItem.Content>
  </TabItem>

  <TabItem Name="fontsize" Header="FontSize">
    <TabItem.Content>
      <TextBlock TextWrapping="WrapWithOverflow">
        FontSize property information goes here.
      </TextBlock>
    </TabItem.Content>
  </TabItem>
</TabControl>

備註

相依性屬性資訊

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

適用於