返回或设置指定直线的虚线样式。可为以下 MsoLineDashStyle 常量之一。Long 类型,可读写。
| MsoLineDashStyle 可为以下 MsoLineDashStyle 常量之一。 | 
| msoLineDash | 
| msoLineDashDot | 
| msoLineDashDotDot | 
| msoLineDashStyleMixed | 
| msoLineDashLongDash | 
| msoLineDashLongDashDot | 
| msoLineRoundDot | 
| msoLineSolid | 
| msoLineSquareDot | 
expression.DashStyle
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例向 myDocument 中添加蓝色的虚线。
Set myDocument = Worksheets(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
    .DashStyle = msoLineDashDotDot
    .ForeColor.RGB = RGB(50, 0, 128)
End With