Back to Devexpress

RibbonForm.RightToLeftLayout Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonform-d59deb23.md

latest2.9 KB
Original Source

RibbonForm.RightToLeftLayout Property

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

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override bool RightToLeftLayout { get; set; }
vb
Public Overrides Property RightToLeftLayout As Boolean

Property Value

TypeDescription
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.

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

XtraTabControl.RightToLeftLayout

RightToLeft

WindowsFormsSettings.RightToLeftLayout

RibbonForm Class

RibbonForm Members

DevExpress.XtraBars.Ribbon Namespace