This topic has not yet been rated - Rate this topic

direction property

Sets or retrieves 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)

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

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 IHTMLRuleStyle::left or IHTMLStyle2::right, IHTMLRuleStyle::marginLeft or IHTMLRuleStyle::marginRight. The IHTMLRuleStyle::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 IHTMLStyle2::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
IHTMLElement2::dir
Conceptual
HTML Character Sets

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.