XY Chart NET 3 Control Reference > Events > LegendClick Event |
This event is generated whenever the user clicks the mouse over the Legend. Refer to Chart Overview for an illustration of XY Chart NET's major components.
Each row within the legend consists of a label (Y-axis scale label or Profile label). If a Y-Scale label is clicked on, the event will pass along the scale's index via its YScaleLabel parameter. If a Profile label is clicked on, the event will pass along the profile's index via its Profile parameter.
[Visual Basic] Event LegendClick(Button As MouseButtons, Profile As Integer, YScaleLabel As Integer, xPos As Integer, yPos As Integer) |
[C#] LegendClick(System.Windows.Forms.MouseButtons Button, int Profile, int YScaleLabel, int xPos, int yPos) |
[C++] LegendClick(System::Windows::Forms::MouseButtons Button, System::Int32 Profile, System::Int32 YScaleLabel, System::Int32 xPos, System::Int32 yPos) |