RichEditBehaviorOptions.RightToLeftTextDirection Property
Specifies whether or not the right-to-left text direction is permitted.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
[DefaultValue(DocumentCapability.Default)]
public virtual DocumentCapability RightToLeftTextDirection { get; set; }
Property Value
Type | Default | Description |
---|---|---|
DocumentCapability | **Default** | One of the DocumentCapability enumeration values indicating the feature availability. |
Available values:
Name | Description |
---|---|
Default | The value is determined by the current setting. The default value is automatically set if it is not explicitly specified. |
Disabled | The feature is not allowed and the corresponding commands are shown disabled. |
Enabled | The feature is available and the corresponding commands are shown enabled. |
Hidden | The feature is not available and the corresponding commands are hidden. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to RightToLeftTextDirection |
---|---|---|
WinForms Controls | SnapControlOptions |
|
RepositoryItemRichTextEdit |
|
|
RichEditControlOptions |
|
|
WPF Controls | RichEditControlOptions |
|
Office File API | RichEditControlOptionsBase |
|
ASP.NET Web Forms Controls | ASPxRichEditSettings |
|
Remarks
The RightToLeftTextDirection property affects the behavior of ToggleParagraphRightToLeftCommand and ToggleParagraphLeftToRightCommand commands.
The ToggleParagraphRightToLeftCommand and ToggleParagraphLeftToRightCommand commands are executed by the Left-To-Right Text Direction and Left-To-Right Text Direction buttons on the Home ribbon tab and by the Right-to-left and Left-to-right radio buttons in the Paragraph dialog. These UI items are visible to users who have RTL languages installed on their machine. Use the RightToLeftTextDirection property to disable these items.