Export (0) Print
Expand All

dir property

Sets or retrieves a value that indicates 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 from left to right.

rtl

Content flows from right to left.

Remarks

The IHTMLDocument3::dir 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 will render to the left of a sentence when the IHTMLDocument3::dir property is set to rtl.

The value of IHTMLDocument3::dir property has no effect on the orientation of coordinates for an object's positioning properties. For example, the IHTMLRuleStyle::left property and the IHTMLStyle2::right property perform the same placement in both cases. However, when both the IHTMLRuleStyle::left and IHTMLStyle2::right properties are specified, the IHTMLRuleStyle::left property takes precedence when the IHTMLDocument3::dir property is set to ltr. Likewise, the IHTMLStyle2::right property takes precedence when the IHTMLDocument3::dir property is set to rtl.

See also

Reference
IHTMLRuleStyle2::direction
Conceptual
HTML Character Sets

 

 

Community Additions

ADD
Show:
© 2014 Microsoft