borderBottomColor Property

Microsoft FrontPage Visual Basic

borderBottomColor Property

Sets or returns a String, specifying a color name or red-green-blue (RGB) value, that represents the color of the bottom border of the specified object.

expression.borderBottomColor

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

For more information about setting colors, see the HTML Color Table.

Example

The following example sets the color, style, and size for the bottom, left, right, and top, borders of the specified IHTMLElement object.

    Sub SetBorders(ByRef objElement As IHTMLElement, ByRef strColor As String, _
        ByRef strStyle As String, ByRef strWidth As String)

    With objElement.Style
        'Sets the bottom border properties.
        .borderBottomColor = strColor
        .borderBottomStyle = strStyle
        .borderBottomWidth = strWidth

        'Sets the left border properties.
        .borderLeftColor = strColor
        .borderLeftStyle = strStyle
        .borderLeftWidth = strWidth

        'Sets the right border properties.
        .borderRightColor = strColor
        .borderRightStyle = strStyle
        .borderRightWidth = strWidth

        'Sets the top border properties.
        .borderTopColor = strColor
        .borderTopStyle = strStyle
        .borderTopWidth = strWidth
    End With
End Sub
  

Use the following example to call the preceding subroutine.

    Sub CallSetBorders()
    Call SetBorders(objElement:=ActiveDocument.body.all.tags("p") _
        .Item(0), strColor:="blue", strStyle:="dashed", strWidth:="thick")
End Sub