返回或设置指示指定线条的虚线样式的 MsoLineDashStyle 常量。 读/写。
语法
表达式。DashStyle
表达式 表示 LineFormat 对象的变量。
返回值
MsoLineDashStyle
备注
DashStyle 属性值可以是在 Microsoft Office 类型库中声明的 MsoLineDashStyle 常量之一。
示例
以下示例将蓝色虚线添加到当前出版物。
With ActiveDocument.Pages(1).Shapes _
.AddLine(BeginX:=10, BeginY:=10, _
EndX:=250, EndY:=250).Line
.DashStyle = msoLineDashDotDot
.ForeColor.RGB = RGB(50, 0, 128)
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。