Need help accessing properties.
Posted: Fri Jan 18, 2013 8:36 pm
I'm new to C# and I'm having a problem accessing some series properties.
This works fine where I already have a statically defined series:
private void PointsCheckBox_CheckedChanged(object sender, EventArgs e)
{
this.line1.Pointer.Visible = this.PointsCheckBox.Checked;
}
Later during execution, I add some more series to the chart. I would like to set the property as above, Pointer.Visible, but it's not available:
private void PointsCheckBox_CheckedChanged(object sender, EventArgs e)
{
foreach (int i in this.theLargeChart.Series)
{
this.theLargeChart.Series.Pointer.Visible = this.PointsCheckBox.Checked;
} ................................^^^^^^^This property is not visible here.
}
Could someone show me how I can access that property?
Thanks,
Brian
This works fine where I already have a statically defined series:
private void PointsCheckBox_CheckedChanged(object sender, EventArgs e)
{
this.line1.Pointer.Visible = this.PointsCheckBox.Checked;
}
Later during execution, I add some more series to the chart. I would like to set the property as above, Pointer.Visible, but it's not available:
private void PointsCheckBox_CheckedChanged(object sender, EventArgs e)
{
foreach (int i in this.theLargeChart.Series)
{
this.theLargeChart.Series.Pointer.Visible = this.PointsCheckBox.Checked;
} ................................^^^^^^^This property is not visible here.
}
Could someone show me how I can access that property?
Thanks,
Brian