LineStyle 属性 (Excel)Borders.LineStyle property (Excel)

返回或设置边框的线条样式。Returns or sets the line style for the border. 读/写 XlLineStylexlGray25xlGray50xlGray75xlAutomaticRead/write XlLineStyle, xlGray25, xlGray50, xlGray75, or xlAutomatic.



_表达式_一个代表**边框** 对象的变量。expression A variable that represents a Borders object.


本示例为 Chart1 的图表区和绘图区域设置边框。This example puts a border around the chart area and the plot area of Chart1.

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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.