LineFormat.Style Property (PowerPoint)
Returns or sets the line style. Read/write.
Syntax
expression .Style
expression A variable that represents a LineFormat object.
Return Value
MsoLineStyle
Remarks
The value of the Style property can be one of these MsoLineStyle constants.
msoLineSingle |
msoLineStyleMixed |
msoLineThickBetweenThin |
msoLineThickThin |
msoLineThinThick |
msoLineThinThin |
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