textDecoration Property

Microsoft FrontPage Visual Basic

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:

ValueDescription
noneText has no decoration.
underlineText is underlined.
overlineText has a line over it.
line-throughText has a line drawn through it.
blinkNot 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"