Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TabPane.TabAlignment Property

Gets or sets whether tabs are aligned at the near or far side of the pane, or in center. By default, the alignment depends on the pane’s dock style, and RTL setting.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(Alignment.Default)]
[DXCategory("Layout")]
public Alignment TabAlignment { get; set; }

#Property Value

Type Default Description
DevExpress.XtraEditors.Alignment Default

An DevExpress.XtraEditors.Alignment enumeration value that specifies the alignment of tabs relative to the pane.

#Remarks

By default (the current property is set to Default), tabs are aligned at the right side if the pane’s RTL setting is enabled (see RightToLeft), or if the pane is docked at the right (see NavigationPane.Dock). Otherwise, tabs are left aligned. Use the TabAlignment property to explicitly specify the alignment of the pane’s tabs. Note that if the pane is right-to-left aligned, the near aligned tabs are right aligned.

See Also