XY Chart NET 3 Control Reference
Gradient Property

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

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

With XYChartNETCtl1
   With .Gradient
      .GradientOption = goCustom     'Use Gradients for the chart's background
      .StartColor = Color.White
      .EndColor = Color.Blue
      .Orientation = ooCircular
   End With

   .Refresh                          'Refresh required to update chart with changes made
End With
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

//Use Gradients for the chart's background
XYChartNETCtl1.Gradient.GradientOption = XYChartNet.XYChartNETCtl.GradientOptions.goCustom;
XYChartNETCtl1.Gradient.StartColor = Color.White;
XYChartNETCtl1.Gradient.EndColor = Color.Blue;
XYChartNETCtl1.Gradient.Orientation = XYChartNet.XYChartNETCtl.OrientationOptions.ooCircular;

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.

//Use Gradients for the chart's background
XYChartNETCtl1->Gradient->GradientOption = XYChartNETCtl::GradientOptions::goCustom;
XYChartNETCtl1->Gradient->StartColor = Color::White;
XYChartNETCtl1->Gradient->EndColor = Color::Blue;
XYChartNETCtl1->Gradient->Orientation = XYChartNETCtl::OrientationOptions::ooCircular;

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

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.