Gets or sets the position of the underline decoration that is set through the IHTMLStyle::textDecoration property of the object.
HRESULT IHTMLCSSStyleDeclaration::get_textUnderlinePosition(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_textUnderlinePosition(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.
above Decoration appears above the text. below Decoration appears below the text. auto Default. Microsoft Internet Explorer 6 and later. Decoration appears above the text if the LANG attribute is set to
ja, which is the language code abbreviation for the Japanese language, and the -ms-writing-mode attribute is set to
tb-rl, which causes vertical inline text progression. If not, the decoration appears below the text.
auto-pos Internet Explorer 6 and later. Identical to
Returns S_OK if successful, or an error value otherwise.
Internet Explorer 8. The -ms-text-underline-position 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 IHTMLStyle::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
abovevalue causes the underline decoration to be laid out before the text or that the decoration appears before the text. With the
belowvalue, then, the decoration appears after the text.
In Internet Explorer 6, The
auto-posvalues apply to this property as of Internet Explorer 6. The default value of this property is
autoas of Internet Explorer 6. With Internet Explorer 5.5, the default value of this property is