borderBottom Property

Microsoft FrontPage Visual Basic

borderBottom Property

Returns or sets a String that represents the properties for the bottom border of a specified object.

expression.borderBottom

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

Remarks

The String for the borderBottom property can be one or more of the following space-delimited values:

width Any value available to the borderBottomWidth property.
style Any value available to the borderBottomStyle property.
color Any value available to the borderBottomColor property.

Example

The following example sets the bottom, left, right, and top borders for the specified element.

    Sub SetTopBottomLeftRightBorders(ByRef objElement As IHTMLElement, _
        ByRef strBorder As String)

    With objElement.Style
        .borderBottom = strBorder
        .borderLeft = strBorder
        .borderRight = strBorder
        .borderTop = strBorder
    End With

End Sub
  

Use the following example to call the preceding subroutine.

    Sub CallSetTopBottomLeftRightBorders()

    Call SetTopBottomLeftRightBorders(objElement:=ActiveDocument _
        .all.tags("p").Item(0), strBorder:="yellow dashed medium")

End Sub