主题
Shadow (属性)
返回或设置一个 bool 值,它确定对象是否有阴影。
示例
python
#此示例将图表工作表 Chart1 中图表的第一个数据序列的数据标签设置为有阴影
def test():
datalabels = Application.Charts.Item("Chart1").ChartObjects(1).Chart.SeriesCollection(1).DataLabels()
datalabels.Shadow = True
python
#此示例显示工作表 Sheet1 中第一个图表上的第三个系列的数据标签是否有阴影
def test():
datalabel = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.SeriesCollection(3).DataLabels()
print(datalabel.Shadow)