Chart.AxisY.CustomLabels名称在Chart.VisibleChanged之后更改

时间:2016-12-22 03:12:19

标签: c# charts label

我想更改m_CustomLabel

CustomLabel m_CustomLabel = ....
m_CustomLabel.Name = "Label_01";
chart1.ChartAreas[0].AxisY.CustomLabels.Add(m_CustomLabel);

chart1_VisibleChanged之后:

chart1.ChartAreas[0].AxisY.CustomLabels[0].Name = ""; // <== changed (but CustomLabels[0].FromPosition ToPosition Text ... the same as m_CustomLabel)

this.chart1.ChartAreas[0].AxisY.CustomLabels.Contains(m_CustomLabel) => false

我希望按m_CustomLabel更改值,但失败了,因为AxisY.CustomLabels[0].Name = ""

有任何问题或我无法通过这种方式更改CustomLabels吗?

0 个答案:

没有答案