DefaultBorderLineWidth Property

Applies To

Options object.

Description

Returns or sets the default line width of borders. Can be one of the following WdLineWidth constants: wdLineWidth025pt, wdLineWidth050pt, wdLineWidth075pt, wdLineWidth100pt, wdLineWidth150pt, wdLineWidth225pt, wdLineWidth300pt, wdLineWidth450pt, or wdLineWidth600pt. Read/write Long.

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

See Also

DefaultBorderColorIndex property, DefaultBorderLineStyle property, Enable property.

Example

This example changes the default line width of borders and then adds a border around each paragraph in the selection.

Options.DefaultBorderLineWidth = wdLineWidth050pt
Selection.Borders.Enable = True