textUnderlinePosition property
Specifies the position of the underline decoration that is set through the IHTMLRuleStyle::textDecoration property of the object.
Syntax
HRESULT value = object.put_textUnderlinePosition( v);HRESULT value = object.get_textUnderlinePosition(* p);
Property values
Type: BSTR
above (above)
Decoration appears above the text.
below (below)
Decoration appears below the text.
auto (auto)
Default. Internet Explorer 6 and later. Decoration appears above the text if the IHTMLElement::lang attribute is set to ja, which is the language code abbreviation for the Japanese language, and the IHTMLCurrentStyle2::writingMode attribute is set to tb-rl, which causes vertical inline text progression. If not, the decoration appears below the text.
auto-pos (auto-pos)
Internet Explorer 6 and later. Identical to auto.
auto (auto)
Default. Decoration appears above the text if the IHTMLElement::lang attribute is set to ja, which is the language code abbreviation for the Japanese language, and the IHTMLCurrentStyle2::writingMode attribute is set to tb-rl, which causes vertical inline text progression. If not, the decoration appears below the text.
auto-pos (auto-pos)
Identical to auto.
String format
above | below | auto | auto-pos
above | below | auto | auto-pos
CSS information
Applies To | All elements |
Media | visual |
Inherited | 1 |
Initial Value |
Remarks
Windows Internet Explorer 8. The IHTMLCurrentStyle2::textUnderlinePosition attribute is an extension to CSS, and can be used as a synonym for text-underline-position in IE8 Standards mode.
This property specifies the position of the underline decoration. To turn the decoration on or off, use the IHTMLRuleStyle::textDecoration property.
The position of the underline decoration is relative to the layout of the text in the object. With vertical text, it is more accurate to say that the above value causes the underline decoration to be laid out before the text or that the decoration appears before the text. With the below value, then, the decoration appears after the text.
In Internet Explorer 6, The auto and auto-pos values apply to this property as of Internet Explorer 6. The default value of this property is auto as of Internet Explorer 6. With Microsoft Internet Explorer 5.5, the default value of this property is below.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |