摘要:[TeeChart] Legend checkbox change
目的: user 對 Legend上的checkbox做動作時觸發
private void tChart1_ClickLegend(object sender, MouseEventArgs e)
{
int ClickedItem = tChart1.Legend.Clicked(e.X, e.Y); //legend index
if (ClickedItem < tChart1.Series.Count)
{
if (tChart1[ClickedItem].Active)
{
//變為uncheck 後要做的事
}
else
{
//變為check 後要做的事
}
}
}