dir property

Sets or retrieves the reading order of the object.

Syntax

HRESULT value = object.put_dir( v);HRESULT value = object.get_dir(* p);

Property values

Type: BSTR

ltr

Default. Content flows left to right.

rtl

Content flows right to left.

Remarks

The property does not affect alphanumeric characters in Latin documents. These characters always render ltr. However, the property does affect punctuation characters in Latin documents. For example, punctuation marks such as periods and question marks render to the left of a sentence when the IHTMLDocument3::dir property is set to rtl.

See also

Reference

IHTMLRuleStyle2::direction

Conceptual

HTML Character Sets