Syntax
Underline [On]
Underline()
Remarks
The Underline statement adds or removes the single-underline character format for the selected text, or controls single-underline formatting for characters to be inserted at the insertion point.
Argument | Explanation | |
On | Specifies whether to add or remove the single-underline format: 1 Formats the selection with the single-underline format. 0 (zero) Removes the single-underline format. Omitted Toggles the single-underline format. |
The Underline() function returns the following values.
Value | Explanation | |
0 (zero) | If none of the selection is in the single-underline format | |
–1 | If part of the selection is in the single-underline format | |
1 | If all the selection is in the single-underline format |
See Also
DottedUnderline, DoubleUnderline, FormatFont, WordUnderline