XY Chart NET 3 Control Reference
Legend Property

Use this property to return/set values that determines the characteristics for the chart's Legend.   Legend uses the Legend Class set of properties for its characteristics.

Syntax
[Visual Basic]
Property Legend() As C_Legend
[C#]
XYChartNet.XYChartNETCtl.C_Legend XYChartNETCtl.Legend
[C++]
property XYChartNet::XYChartNETCtl::C_Legend ^ XYChartNet::XYChartNETCtl::Legend
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.Legend.Visible = True            'Display the Legend
XYChartNETCtl1.Legend.BorderVisible = True      'Draw a border around the Legend
XYChartNETCtl1.Legend.YScaleVisible = True      'Display profile's y-coordinate during crosshairs mode
XYChartNETCtl1.Legend.Position = rlLeft         'Position Legend left of the Plot
XYChartNETCtl1.Refresh                          'Refresh required to update chart with changes made

XYChartNETCtl1.Legend.Visible = True            'Display the Legend
If (XYChartNETCtl1.Legend.BorderVisible) Then
   XYChartNETCtl1.Legend.BorderVisible = False  'No border around the Legend
End If
XYChartNETCtl1.Refresh                          'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.Legend.Visible = true;            //Display the Legend
XYChartNETCtl1.Legend.BorderVisible = true;      //Draw a border around the Legend
XYChartNETCtl1.Legend.YScaleVisible = true;      //Display profile's y-coordinate during crosshairs mode
XYChartNETCtl1.Legend.Position = rlLeft;         //Position Legend left of the Plot
XYChartNETCtl1.Refresh();                        //Refresh required to update chart with changes made

XYChartNETCtl1.Legend.Visible = true;            //Display the Legend
if (XYChartNETCtl1.Legend.BorderVisible)
   XYChartNETCtl1.Legend.BorderVisible = false;  //No border around the Legend
XYChartNETCtl1.Refresh();                        //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1->Legend->Visible = true;           //Display the Legend
XYChartNETCtl1->Legend->BorderVisible = true;     //Draw a border around the Legend
XYChartNETCtl1->Legend->YScaleVisible = true;     //Display profile's y-coordinate during crosshairs mode
XYChartNETCtl1->Legend->Position = rlLeft;        //Position Legend left of the Plot
XYChartNETCtl1->Refresh();                        //Refresh required to update chart with changes made

XYChartNETCtl1->Legend->Visible = true;           //Display the Legend
if (XYChartNETCtl1->Legend->BorderVisible)
   XYChartNETCtl1->Legend->BorderVisible = false; //No border around the Legend
XYChartNETCtl1->Refresh();                        //Refresh required to update chart with changes made
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.