bididir Property
Returns or sets a String that represents the allowed direction of the text in a given text range or element. Read/write.
expression.bididir
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
If the bididir property is set to "true", the text range allows bi-directional text rendering. A setting of "false" indicates that the text range doesn't allow bi-directional text rendering.
Example
The following example sets the bididir property of a given text range to "true", thus allowing text to appear either left-to-right or right-to-left.
Sub SetDirection()
Dim objDoc As FPHTMLDocument
Dim objSs As IFPStyleState
Dim objRng As IHTMLTxtRange
Set objDoc = ActiveDocument
objDoc.body.innerHTML = "<p><i><b>Heading 1</b></i></p>"
Set objSs = objDoc.createStyleState
Set objRng = objDoc.body.createTextRange
With objSs
.gather objRng
.setProperty "background-color", vbYellow
.bididir = "true"
.Apply
End With
End Sub