direction property
Specifies the reading order of the object.
Syntax
Integer value = object.put_direction( v);Integer value = object.get_direction(* sDirection);
Property values
Type: BSTR
ltr (ltr)
Initial value. 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 | ltr |
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 IHTMLCSSStyleDeclaration::left or IHTMLCSSStyleDeclaration::right, IHTMLCSSStyleDeclaration::marginLeft or IHTMLCSSStyleDeclaration::marginRight. The IHTMLCSSStyleDeclaration::marginLeft property, for example, sets or retrieves the width of the margin on the left side of the document regardless of the value of the IHTMLCSSStyleDeclaration::direction property.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
See also
Reference
Conceptual