XY Chart NET 3 Control Reference > Properties > 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.
[Visual Basic] Property DeltaCrosshairs() As C_DeltaCrosshairs |
[C#] XYChartNet.XYChartNETCtl.C_DeltaCrosshairs XYChartNETCtl.DeltaCrosshairs |
[C++] property XYChartNet::XYChartNETCtl::C_DeltaCrosshairs ^ XYChartNet::XYChartNETCtl::DeltaCrosshairs |
' 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