direction property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the reading order of the object.
![]() |
Syntax
Integer value = object.put_direction(BSTR v);Integer value = object.get_direction(BSTR* sDirection);
Property values
Type: BSTR
ltr (ltr)
Default. Content flows left to right.
rtl (rtl)
Content flows right to left.
inherit (inherit)
Content flow is inherited.
String format
ltr | rtl
CSS information
| Applies To | All elements |
| Media | visual |
| Inherited | 1 |
| Initial Value |
Standards information
- CSS 2.1, Section 9.10
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.
The property pertains only to the directional flow of an element's content. It has no effect on properties such as left or right, margin-left or margin-right. The margin-left property, for example, sets or retrieves the width of the margin on the left side of the document regardless of the value of the direction property.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
|
DLL |
Mshtml.dll |
See also
Reference
Conceptual
Build date: 1/23/2012
.png)