Gets or sets the reading order of the object.
HRESULT IHTMLCSSStyleDeclaration::get_direction(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_direction(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
ltr Default. Content flows left to right. rtl Content flows right to left. inherit Content flow is inherited.
Returns S_OK if successful, or an error value otherwise.
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.