Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

direction property

Specifies the reading order of the object.

CSS 2.1, Section 9.10

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 ToAll elements
Mediavisual
Inherited1
Initial Valueltr

Standards information

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 IHTMLCurrentStyle::left or IHTMLCurrentStyle::right, IHTMLCurrentStyle::marginLeft or IHTMLCurrentStyle::marginRight. The IHTMLCurrentStyle::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 IHTMLCurrentStyle::direction property.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLElement2::dir
Conceptual
HTML Character Sets

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.