返回或设置指定线条的虚线线型。 读/写。
语法
表达式。DashStyle
表达 一个代表 LineFormat 对象的变量。
返回值
MsoLineDashStyle
备注
DashStyle 属性的值可以是其中一个 读 常量。
| msoLineDash | 
| msoLineDashDot | 
| msoLineDashDotDotDot | 
| msoLineDashStyleMixed | 
| msoLineLongDash | 
| msoLineLongDashDot | 
| msoLineRoundDot | 
| msoLineSolid | 
| msoLineSquareDot | 
示例
以下示例向 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
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。