CRichEdit.SetBidiOptionsmethod
Sets the current state of the bidirectional options in the rich edit control.
Syntax
SUB SetBidiOptions (BYVAL hRichEdit AS HWND, BYVAL pOptions AS BIDIOPTIONS PTR)
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
pOptions | Pointer to a BIDIOPTIONS structure that indicates how to set the state of the bidirectional options in the rich edit control. |
Description
Sets the current state of the bidirectional options in the rich edit control.
Remarks
The rich edit control must be in plain text mode or SetBidiOptions will not do anything.
In plain text controls, SetBidiOptions automatically determines the paragraph direction and/or alignment based on the context rules. These rules state that the direction and/or alignment is derived from the first strong character in the control. A strong character is one from which text direction can be determined (see Unicode Standard version 2.0). The paragraph direction and/or alignment is applied to the default format.
SetBidiOptions only switches the default paragraph format to RTL (right to left) if it finds an RTL character.
Reference
- Defined in AfxNova/CRichEdit.inc:946
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class