LineStyle 属性

       

返回或设置边框的线型。XlLineStyle 类型,可读写。

expression LineStyle

expression   必需。该表达式返回“应用于”列表中的对象之一。

示例

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

With myChart
    .ChartArea.Border.LineStyle = xlDashDot
    With .PlotArea.Border
        .LineStyle = xlDashDotDot
        .Weight = xlThick
    End With
End With