Share via


dir Property

Returns or sets a String that represents the reading order of text in an HTML element.

expression.dir

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

The dir property can be one of the following String values:

ltr Text flow is left to right.
rtl Text flow is right to left.

Example

The following example specifies right-to-left reading order for the first form in the active document.

Dim objForm As FPHTMLFormElement

Set objForm = ActiveDocument.forms(0)

objForm.Dir = "rtl"

Applies to | FPHTMLFormElement Object | IHTMLFormElement Object