BorderBottom, BorderBottom()

Syntax

BorderBottom [On]

BorderBottom()

Remarks

The BorderBottom statement applies or removes a bottom border for the selected paragraphs, table cells, or graphic. Note that when you apply a bottom border to a series of paragraphs or table rows, the border appears only beneath the last paragraph or row in the series. If you want a border to separate each paragraph or row, use BorderInside.

Argument

Explanation

On

Specifies whether to apply or remove a bottom border:

1 Applies the border

0 (zero) Removes the border

Omitted Toggles the border


The BorderBottom() function returns the following values.

Value

Explanation

0 (zero)

If at least one of the selected items has no bottom border or if the selection contains a mixture of items (for example, a paragraph and
a table cell)

1

If each item in the selection is of the same type and has a bottom border


Example

This example applies a bottom border using one of two line styles, depending on whether the selection is within a table. If the selection is within a table, a double border is applied; otherwise, a thick, single border is applied.


If SelInfo(12) = - 1 Then
    BorderLineStyle 8
    BorderBottom 1
Else
    BorderLineStyle 4
    BorderBottom 1
End If

See Also

BorderInside, BorderLeft, BorderLineStyle, BorderNone, BorderOutside, BorderRight, BorderTop, FormatBordersAndShading, ShadingPattern