Style Property

Applies To

LineFormat object.

Description

Returns or sets the line style. Can be one of the following MsoLineStyle constants: msoLineSingle, msoLineStyleMixed, msoLineThickBetweenThin, msoLineThickThin, msoLineThinThick, or msoLineThinThin. Read/write Long.

Example

This example adds a thick, blue compound line to myDocument. The compound line consists of a thick line with a thin line on either side of it.

Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
    .Style = msoLineThickBetweenThin
    .Weight = 8
    .ForeColor.RGB = RGB(0, 0, 255)
End With