XY Chart NET 3 Control Reference
DeltaCrosshairs Property

Use this property to return/set values that determines the plot's delta crosshairs characteristics.  DeltaCrosshairs uses the DeltaCrosshairs Class set of properties for its characteristics.

Syntax
[Visual Basic]
Property DeltaCrosshairs() As C_DeltaCrosshairs
[C#]
XYChartNet.XYChartNETCtl.C_DeltaCrosshairs XYChartNETCtl.DeltaCrosshairs
[C++]
property XYChartNet::XYChartNETCtl::C_DeltaCrosshairs ^ XYChartNet::XYChartNETCtl::DeltaCrosshairs
       
Remarks
Delta Crosshairs are active when the Delta Crosshairs Toolbar button is selected, or when the Delta Crosshairs mode is enabled via the SetDeltaCrosshairsMode method.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Dim tmpColor As Color

XYChartNETCtl1.Toolbar.Visible = True                             'Display the Toolbar
XYChartNETCtl1.Legend.Visible = True                              'Display the Legend

XYChartNETCtl1.DeltaCrosshairs.HorizontalVisible = True           'Display the horizontal crosshairs
XYChartNETCtl1.DeltaCrosshairs.VerticalVisible = True             'Display the vertical crosshairs

tmpColor = XYChartNETCtl1.DeltaCrosshairs.Delta1VertColor         'Return the color of the (delta 1) vertical crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta1VertColor = Color.Green      'Set the color for the (delta 1) vertical crosshair to Green
tmpColor = XYChartNETCtl1.DeltaCrosshairs.Delta2VertColor         'Return the color of the (delta 2) vertical crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta2VertColor = Color.Red        'Set the color for the (delta 2) vertical crosshair to Red

XYChartNETCtl1.DeltaCrosshairs.Delta1HorizWidth = woFourPoint     'Set the width of the horizontal crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta2HorizWidth = woTwoPoint      'Set the width of the horizontal crosshair

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.

System.Drawing.Color tmpColor;

XYChartNETCtl1.Toolbar.Visible = true;                            //Display the Toolbar
XYChartNETCtl1.Legend.Visible = true;                             //Display the Legend

XYChartNETCtl1.DeltaCrosshairs.HorizontalVisible = true;          //Display the horizontal crosshairs
XYChartNETCtl1.DeltaCrosshairs.VerticalVisible = true;            //Display the vertical crosshairs

tmpColor = XYChartNETCtl1.DeltaCrosshairs.Delta1VertColor;        //Return the color of the (delta 1) vertical crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta1VertColor = Color.Green;     //Set the color for the (delta 1) vertical crosshair to Green
tmpColor = XYChartNETCtl1.DeltaCrosshairs.Delta2VertColor;        //Return the color of the (delta 2) vertical crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta2VertColor = Color.Red;       //Set the color for the (delta 2) vertical crosshair to Red

XYChartNETCtl1.DeltaCrosshairs.Delta1HorizWidth = woFourPoint;    //Set the width of the (delta 1) horizontal crosshair
XYChartNETCtl1.DeltaCrosshairs.Delta2HorizWidth = woTwoPoint;     //Set the width of the (delta 2) horizontal crosshair

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.

System::Drawing::Color tmpColor;

XYChartNETCtl1->Toolbar->Visible = true;                          //Display the Toolbar
XYChartNETCtl1->Legend->Visible = true;                           //Display the Legend

XYChartNETCtl1->DeltaCrosshairs->HorizontalVisible = true;        //Display the horizontal crosshairs
XYChartNETCtl1->DeltaCrosshairs->VerticalVisible = true;          //Display the vertical crosshairs

tmpColor = XYChartNETCtl1->DeltaCrosshairs->Delta1VertColor;      //Return the color of the (delta 1) vertical crosshair
XYChartNETCtl1->DeltaCrossHairs->Delta1VertColor = Color::Green;  //Set the color for the (delta 1) vertical crosshair to Green
tmpColor = XYChartNETCtl1->DeltaCrosshairs->Delta2VertColor;      //Return the color of the (delta 2) vertical crosshair
XYChartNETCtl1->DeltaCrossHairs->Delta2VertColor = Color::Red;    //Set the color for the (delta 2) vertical crosshair to Red

XYChartNETCtl1->DeltaCrossHairs->Delta1HorizWidth = woFourPoint;  //Set the width of the (delta 1) horizontal crosshair
XYChartNETCtl1->DeltaCrossHairs->Delta2HorizWidth = woTwoPoint;   //Set the width of the (delta 2) horizontal crosshair

XYChartNETCtl1->Refresh();                                        //Refresh required to update chart with changes made
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.