WindowsFormsSettings.RightToLeftLayout Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll


public static DefaultBoolean RightToLeftLayout { get; set; }
Public Shared Property RightToLeftLayout As DefaultBoolean

Property Value

Type Description

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


The WindowsFormsSettings.RightToLeft property allows you to specify whether visual elements of DevExpress controls are aligned to support locales using the right-to-left fonts. When displaying languages that use a right-to-left writing system, we recommend that the UI on a form is mirrored to provide a more natural user experience.

Typically, right-to-left mirror placement is controlled by the RightToLeftLayout property of the form or control that supports mirror placement. For instance, for the ribbon form, you can enable mirror placement with the RibbonForm.RightToLeftLayout property, or with the XtraTabControl.RightToLeftLayout property for the tab control. Note that the control's RightToLeftLayout property is not an ambient property, thus it is not inherited by controls, and you should manually enable this setting for each control you want to be displayed reversed.

However, the WindowsFormsSettings.RightToLeftLayout property allows you to specify right-to-left mirror placement for all DevExpress forms and controls in a centralized way. If this property is set to Default, the mirror placement is managed by each control's RightToLeftLayout property. Setting the WindowsFormsSettings.RightToLeftLayout property to True forcibly enables right-to-left mirror placement for all DevExpress forms and controls. In the figures below, you can see the regular and mirrored layouts of the same ribbon form.

WindowsFormsSettings_RightToLeftLayout_False WindowsFormsSettings_RightToLeftLayout_True

See Also