borderStyle Property

Microsoft FrontPage Visual Basic

borderStyle Property

Returns or sets a String that represents the line style of the border of a specified object.

expression.borderStyle

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

Remarks

The String for the borderStyle property can be one of the following values:

none Border is not drawn.
dotted Border is a dotted line on the Macintosh platform with Microsoft Internet Explorer version 4.01 or later, and a solid line on the Microsoft Windows and Unix platforms.
dashed Border is a dashed line on the Macintosh platform with Internet Explorer 4.01 or later, and a solid line on the Windows and Unix platforms.
solid Border is a solid line.
double Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the value of the borderWidth property. The borderWidth property must be at least 3 pixels wide to draw a double border.
groove 3-D groove is drawn in colors based on the value in the borderColor property.
ridge 3-D ridge is drawn in colors based on the value in the borderColor property.
inset 3-D inset is drawn in colors based on the value in the borderColor property.
outset 3-D outset is drawn in colors based on the value in the borderColor property.

Example

The following example sets the border width, style, and color of the specified element.

    Sub SetElementBorders(ByRef objStyle As FPHTMLStyle)

    With objStyle
        .borderWidth = "thick"
        .borderStyle = "double"
        .borderColor = "red"
    End With

End Sub
  

Use the following example to call the preceding subroutine.

    Sub CallSetElementBorders()

    Call SetElementBorders(objStyle:=ActiveDocument _
        .all.tags("p").Item(1).Style)

End Sub