LineStyle Property

See Also         Example         Applies To

Returns or sets the border line style for the specified object. Read/write Long.

Can be one of the following WdLineStyle constants:

wdLineStyleDashDot

wdLineStyleDashDotDot

wdLineStyleDashDotStroked

wdLineStyleDashLargeGap

wdLineStyleDashSmallGap

wdLineStyleDot

wdLineStyleDouble

wdLineStyleDoubleWavy

wdLineStyleEmboss3D

wdLineStyleEngrave3D

wdLineStyleInset

wdLineStyleNone

wdLineStyleOutset

wdLineStyleSingle

wdLineStyleSingleWavy

wdLineStyleThickThinLargeGap

wdLineStyleThickThinMedGap

wdLineStyleThickThinSmallGap

wdLineStyleThinThickLargeGap

wdLineStyleThinThickMedGap

wdLineStyleThinThickSmallGap

wdLineStyleThinThickThinLargeGap

wdLineStyleThinThickThinMedGap

wdLineStyleThinThickThinSmallGap

wdLineStyleTriple


Remarks

Setting the LineStyle property for a range that refers to individual characters or words applies a character border.

Setting the LineStyle property for a paragraph or range of paragraphs applies a paragraph border. Use the InsideLineStyle property to apply a border between consecutive paragraphs.

Setting the LineStyle property for a section applies a page border around the pages in the section.