我想更改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吗?