Skip to main content

RibbonForm.RightToLeftLayout Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public override bool RightToLeftLayout { get; set; }

Property Value

Type Description
Boolean

true if right-to-left mirror placement is turned on; otherwise, false.

Remarks

The Control.RightToLeft inherited property allows you to specify whether the current ribbon form’s visual elements are aligned to support locales using the right-to-left fonts. The Control.RightToLeft property is an ambient setting. That means it is inherited by all child controls on the current ribbon form, except for those that explicitly override it. You can also enable right-to-left alignment for all DevExpress controls in a centralized way, using the WindowsFormsSettings.RightToLeft property.

If the right-to-left alignment is enabled for controls on this form, we recommend you display the user interface mirrored to provide more natural user experience. To reverse the layout of controls on the current ribbon form, set the RightToLeftLayout property to true. In the figure below, you can see an example of the application that uses the mirrored layout.

WindowsFormsSettings_RightToLeftLayout_True

Also, you can turn on right-to-left mirror placement for all DevExpress forms and controls in a centralized way, using the WindowsFormsSettings.RightToLeftLayout property. The WindowsFormsSettings.RightToLeftLayout property has priority over the RightToLeftLayout property.

See Also