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