C1Chart の凡例では、データセット名と SymbolStyle または LineStyle のシンボルでデータセットを表します。Legend の SeriesFromCoord メソッドは、のピクセル座標値から最も近い凡例項目に関連するデータセットを返します。たとえば、ユーザーが凡例の最初のデータセットのシンボルをクリックすると仮定した場合、入力されるユーザーのマウスのピクセル座標に基づいて、SeriesFromCoord メソッドの Group パラメータおよび Series パラメータへそれぞれグループとデータセットの値を返します。以下にサンプルコードを示します。
Visual Basic コードの書き方
| Visual Basic | 
                         
                            コードのコピー
                         
                     | 
                
|---|---|
                        Dim LegendGroup As Integer Dim LegendSeries As Integer C1Chart1.Legend.SeriesFromCoord(170, 275, LegendGroup, LegendSeries)  | 
                |
C# コードの書き方
| C# | 
                         
                            コードのコピー
                         
                     | 
                
|---|---|
                        int LegendGroup = 0; int LegendSeries = 0; c1Chart1.Legend.SeriesFromCoord(170, 275, ref LegendGroup, ref LegendSeries);  | 
                |