borderRight Property
Returns or sets a String that represents the properties for the right border of a specified object.
expression.borderRight
*expression * Required. An expression that returns one of the objects in the Applies To list.
Remarks
The String for the borderRight property can be one or more of the following space-delimited values:
width | Any value available to the borderRightWidth property. |
style | Any value available to the borderRightStyle property. |
color | Any value available to the borderRightColor 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
Applies to | FPHTMLStyle Object | IHTMLRuleStyle Object | IHTMLStyle Object