Skip to main content

DXRichEditBehaviorOptions.RightToLeftTextDirection Property

Specifies whether the right-to-left text direction is permitted.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v23.1.dll

NuGet Package: DevExpress.Wpf.RichEdit


public DocumentCapability RightToLeftTextDirection { get; set; }

Property Value

Type Description

One of the DocumentCapability enumeration values indicating the feature availability.

Property Paths

You can access this nested property as listed below:

Object Type Path to RightToLeftTextDirection
.BehaviorOptions .RightToLeftTextDirection


The RightToLeftTextDirection property affects the behavior of the following commands:

  • ToggleParagraphRightToLeftCommand

  • ToggleParagraphLeftToRightCommand

  • ToggleParagraphAlignmentArabicJustifyCommand

  • ToggleParagraphAlignmentArabicJustifyGroupCommand

  • ToggleParagraphAlignmentJustifyHighCommand

  • ToggleParagraphAlignmentJustifyLowCommand

  • ToggleParagraphAlignmentJustifyMediumCommand

The ToggleParagraphRightToLeftCommand and ToggleParagraphLeftToRightCommand commands are executed by the Left-To-Right Text Direction and Right-To-Left Text Direction buttons on the Home ribbon tab and by the Right-to-left and Left-to-right radio buttons in the Paragraph dialog.


The ToggleParagraphAlignmentArabicJustifyCommand, ToggleParagraphAlignmentArabicJustifyGroupCommand, ToggleParagraphAlignmentJustifyHighCommand, ToggleParagraphAlignmentJustifyLowCommand and ToggleParagraphAlignmentJustifyMediumCommand are executed by the Justify drop-down menu items on the Home ribbon tab. These items are also available in the Alignment list in the Paragraph dialog.


These UI items are visible to users who have RTL languages installed on their machine.

The DXRichEditDocumentCapabilitiesOptions.ParagraphFormatting property also affects the availability of the above-mentioned commands. The RightToLeftTextDirection property has a priority over the ParagraphFormatting option.

Use the DXRichEditBehaviorOptions.EastAsianTextAlignment property to manage the ToggleParagraphAlignmentDistributeCommand and ToggleParagraphAlignmentThaiDistributeCommand commands’ availability.

See Also