textDecoration property

[This documentation is preliminary and is subject to change.]

Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.

Syntax

Integer value = object.put_textDecoration(BSTR v);Integer value = object.get_textDecoration(BSTR* sDecoration);

Property values

Type: BSTR

one of the values listed in Possible Values.

none (none)

Default. Text has no decoration.

underline (underline)

Text is underlined.

overline (overline)

Text has a line over it.

line-through (line-through)

Text has a line drawn through it.

blink (blink)

Not implemented.

String format

none | underline | overline | line-through | blink

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Remarks

The default value is different for the following tags.

  • Default value is underline for a when used with href, u, and ins.
  • Default value is line-through for strike, s, and del.

If the value none is placed at the end of the values, all values are cleared.

If the object has no text (for example, the img object in HTML) or is an empty object (for example, "<EM></EM>"), this property has no effect.

If you set the text-decoration attribute to none on the body object, the a objects are still underlined. To remove the underline from the a objects, either set the style inline or use a as a selector in the global style sheet.

Specifying the text-decoration property for block elements affects all inline children. If it is specified for, or affects, an inline element, it affects all boxes generated by the element.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

DLL

Mshtml.dll

See also

Reference
textDecorationLineThrough
textDecorationNone
textDecorationOverline
textDecorationUnderline

 

 

Build date: 1/23/2012

Community Additions

Show: