HasUpDownBars 属性 (Excel) ChartGroupChartGroup.HasUpDownBars property (Excel)

如此 如果折线图有涨跌柱线。True if a line chart has up and down bars. 仅适用于折线图。Applies only to line charts. 读/写 BooleanRead/write Boolean.



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


本示例显示 Chart1 中第一个图表组的涨跌柱线,并对其颜色进行设置。This example turns on up and down bars for chart group one on Chart1 and then sets their colors. 本示例应在包含两个系列的二维折线图上运行, 这些系列在一个或多个数据点处相互交叉。The example should be run on a 2D line chart containing two series that cross each other at one or more data points.

With Charts("Chart1").ChartGroups(1) 
 .HasUpDownBars = True 
 .DownBars.Interior.ColorIndex = 3 
 .UpBars.Interior.ColorIndex = 5 
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.