Borders.LineStyle 属性 (Excel)

返回或设置边框的线条样式。 读/写 XlLineStylexlGray25xlGray50xlGray75xlAutomatic

语法

表达式LineStyle

表达 一个代表 Borders 对象的变量。

示例

本示例为 Chart1 的图表区和绘图区域设置边框。

With Charts("Chart1") 
 .ChartArea.Border.LineStyle = xlDashDot 
 With .PlotArea.Border 
 .LineStyle = xlDashDotDot 
 .Weight = xlThick 
 End With 
End With

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。