Share via


DefaultBorderColorIndex Property

WdColorIndex

WdColorIndex can be one of these WdColorIndex constants.
wdAuto
wdBlack
wdBlue
wdBrightGreen
wdByAuthor
wdDarkBlue
wdDarkRed
wdDarkYellow
wdGray25
wdGray50
wdGreen
wdNoHighlight
wdPink
wdRed
wdTeal
wdTurquoise
wdViolet
wdWhite
wdYellow

expression.DefaultBorderColorIndex

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

Note  If the Enable property of the Borders object is set to True, the default line width, line style, and line color for borders are used.

Example

This example changes the default line color and style for borders and then applies a border around the first paragraph in the active document.

ActiveDocument.Paragraphs(1).Borders.Enable = True
With Options
    .DefaultBorderColorIndex = wdRed
    .DefaultBorderLineStyle = wdLineStyleDouble
End With

Applies to | Options Object

See Also | ColorIndex Property | DefaultBorderColor Property | DefaultBorderLineStyle Property | DefaultBorderLineWidth Property