.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditBehaviorOptions.RightToLeftTextDirection Property

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.2.Core.dll

Declaration

[DefaultValue(DocumentCapability.Default)]
public virtual DocumentCapability RightToLeftTextDirection { get; set; }
<DefaultValue(DocumentCapability.Default)>
Public Overridable Property RightToLeftTextDirection As DocumentCapability

Property Value

Type Description
DocumentCapability

One of the DocumentCapability enumeration values indicating the feature availability.

Property Paths

You can access this nested property as listed below:

Show 18 property paths
Library Object Type Path to RightToLeftTextDirection
WinForms Controls SnapControl
.Options.Behavior.RightToLeftTextDirection
SnapControl
.Options.Behavior.RightToLeftTextDirection
SnapControlOptions
.Behavior.RightToLeftTextDirection
RepositoryItemRichTextEdit
.OptionsBehavior.RightToLeftTextDirection
RichEditControl
.Options.Behavior.RightToLeftTextDirection
RichEditControlOptions
.Behavior.RightToLeftTextDirection
WPF Controls RichEditControl
.Options.Behavior.RightToLeftTextDirection
RichEditControlOptions
.Behavior.RightToLeftTextDirection
ASP.NET Controls and MVC Extensions ASPxRichEdit
.Settings.Behavior.RightToLeftTextDirection
ASPxRichEditSettings
.Behavior.RightToLeftTextDirection
MVCxRichEdit
.Settings.Behavior.RightToLeftTextDirection
RichEditSettings
.Settings.Behavior.RightToLeftTextDirection
ASP.NET Bootstrap Controls BootstrapRichEdit
.Settings.Behavior.RightToLeftTextDirection
Office File API SnapDocumentServer
.Options.Behavior.RightToLeftTextDirection
IRichEditDocumentServer
.Options.Behavior.RightToLeftTextDirection
RichEditControlOptionsBase
.Behavior.RightToLeftTextDirection
RichEditDocumentServer
.Options.Behavior.RightToLeftTextDirection
Reporting SyntaxEditor
.Options.Behavior.RightToLeftTextDirection

Remarks

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.

ribbon_items

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.

IMAGE

The property also affects the Table Direction option specified in the Table Properties dialog.

table-properties-dialog

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

The DocumentCapabilitiesOptions.ParagraphFormatting property also affects the availability of the above-mentioned commands. This options has a priority over the RightToLeftTextDirection.

Use the RichEditBehaviorOptions.EastAsianTextAlignment property to manage the ToggleParagraphAlignmentDistributeCommand and ToggleParagraphAlignmentThaiDistributeCommand commands' availability.

See Also