主题
Text (属性)
返回或设置指定对象中的文本。str 型,可读写。
示例
python
#本示例显示图表工作表 Chart1 中数值轴上的单位标签文本
def test():
displayUnitLabel = Application.Charts.Item("Chart1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
print(displayUnitLabel.Text)
python
#下例设置 Sheet1 上的第一个图表数值轴上的单位标签文本
def test():
displayUnitLabel = Application.Worksheets.Item("Sheet1").ChartObjects(1).Chart.Axes(xlValue).DisplayUnitLabel
displayUnitLabel.Text = "万"