textDecoration Property
Returns a String that represents whether the text in the object has strike-through, overline, or underline text decorations.
expression.textDecoration
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The textDecoration property can be one of the following String values:
Value | Description |
---|---|
none | Text has no decoration. |
underline | Text is underlined. |
overline | Text has a line over it. |
line-through | Text has a line drawn through it. |
blink | Not implemented. |
Example
The following example causes all text in the active document to be underlined.
Dim objStyle As FPHTMLStyle
Set objStyle = ActiveDocument.body.Style
objStyle.textDecoration = "underline"