Specifies the bi-directional mode for the component.
Declaration
componentObj.BiDiMode
Read-Write Property | String |
componentObj | One of the user forms components listed in the Applies To section |
Applies To
The property applies to the following components:
TcxButton, TcxCalcEdit, TcxCurrencyEdit, TcxDateEdit, TcxGroupBox, TcxListBox, TcxRadioGroup, TPanel
Description
Use the BiDiMode
property to specify the bi-directional mode for the component. The bi-directional mode specifies the text direction (reading order), text alignment and position of the vertical scroll bar when the keyboard is set to a bi-directional language (for example, Arabic or Hebrew).
Property Value
One of the following string constants:
Constant | Description |
---|---|
“bdLeftToRight ” |
The text is displayed from left to right. The text alignment and scroll bar position are not changed. The Latin text is entered left to right, but when the keyboard is changed to the bi-directional language, the text is entered right to left. This is the default value. |
“bdRightToLeft ” |
The text is displayed from right to left. The alignment is changed, and the vertical scroll bar is moved to the right edge of the component. The bi-directional text is entered right to left, but when the keyboard is changed to the Latin language, the text is entered left to right. |
“bdRightToLeftNoAlign ” |
The text is displayed from right to left. The text alignment is not changed, and the vertical scroll bar is moved to the right edge of the component. |
“bdRightToLeftReadingOnly ” |
The text is displayed from right to left. The text alignment and the scroll bar position are not changed. |
Remarks
When you change the BiDiMode
value, ParentBiDiMode
is automatically set to False.
To make the component inherit its parent’s BiDiMode
setting, set the ParentBiDiMode
to True.