Skip to main content
A newer version of this page is available. .

XtraTabControl.RightToLeftLayout Property

Gets or sets whether right-to-left mirror placement is turned on.

Namespace: DevExpress.XtraTab

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public virtual DefaultBoolean RightToLeftLayout { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumeration value that specifies whether right-to-left mirror placement is turned on.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Using the Control.RightToLeft inherited property, you can align the XtraTabControl‘s visual elements to support locales using right-to-left fonts. If this setting is enabled for the current tab control, it is automatically inherited by child controls that reside in tab pages.

Also, you can enable the right-to-left alignment for all DevExpress controls in a centralized way using the WindowsFormsSettings.RightToLeft property. The WindowsFormsSettings.RightToLeft property has priority over the Control.RightToLeft property.

By default, if the right-to-left alignment is enabled, the XtraTabControl automatically enables the mirror placement of its tab headers. In the figures below, you can see the regular and mirror tab placement.

XtraTabControl_LTR

XtraTabControl_RTL

The RightToLeftLayout property allows you to explicitly specify whether right-to-left mirror placement is turned on for the current tab control.

See Also