Muokkaa

Jaa


DataPoint Constructors

Definition

Initializes a new instance of the DataPoint class.

Overloads

DataPoint()

Initializes a new instance of the DataPoint class.

DataPoint(Series)

Initializes a new instance of the DataPoint class, and sets the Series that the data point belongs to.

DataPoint(Double, Double)

Initializes a new instance of the DataPoint class with the specified X and Y-value.

DataPoint(Double, Double[])

Initializes a new instance of the DataPoint class with the specified X-value and an array of Y-values.

DataPoint(Double, String)

Initializes a new instance of the DataPoint class with the specified X-value and Y-values.

DataPoint()

Initializes a new instance of the DataPoint class.

public:
 DataPoint();
public DataPoint ();
Public Sub New ()

Remarks

This constructor can be used to create and initialize a new instance of the DataPoint class.

However, it is highly recommended that you instead add data points at run time, using the Points collection property.

Applies to

DataPoint(Series)

Initializes a new instance of the DataPoint class, and sets the Series that the data point belongs to.

public:
 DataPoint(System::Web::UI::DataVisualization::Charting::Series ^ series);
public DataPoint (System.Web.UI.DataVisualization.Charting.Series series);
new System.Web.UI.DataVisualization.Charting.DataPoint : System.Web.UI.DataVisualization.Charting.Series -> System.Web.UI.DataVisualization.Charting.DataPoint
Public Sub New (series As Series)

Parameters

series
Series

The Series object that the data point belongs to.

Remarks

This constructor can be used to create and initialize a new instance of the DataPoint class.

However, it is highly recommended that you instead add data points at run time, using the Points collection property.

Applies to

DataPoint(Double, Double)

Initializes a new instance of the DataPoint class with the specified X and Y-value.

public:
 DataPoint(double xValue, double yValue);
public DataPoint (double xValue, double yValue);
new System.Web.UI.DataVisualization.Charting.DataPoint : double * double -> System.Web.UI.DataVisualization.Charting.DataPoint
Public Sub New (xValue As Double, yValue As Double)

Parameters

xValue
Double

The X-value of the data point.

yValue
Double

The Y-value of the data point.

Remarks

This constructor can be used to create and initialize a new instance of the DataPoint class.

However, it is highly recommended that you instead add data points at run time, using the Points collection property.

Applies to

DataPoint(Double, Double[])

Initializes a new instance of the DataPoint class with the specified X-value and an array of Y-values.

public:
 DataPoint(double xValue, cli::array <double> ^ yValues);
public DataPoint (double xValue, double[] yValues);
new System.Web.UI.DataVisualization.Charting.DataPoint : double * double[] -> System.Web.UI.DataVisualization.Charting.DataPoint
Public Sub New (xValue As Double, yValues As Double())

Parameters

xValue
Double

The X-value.

yValues
Double[]

An array of Y-values.

Remarks

This constructor can be used to create and initialize a new instance of the DataPoint class.

However, it is highly recommended that you instead add data points at run time, using the Points collection property.

Applies to

DataPoint(Double, String)

Initializes a new instance of the DataPoint class with the specified X-value and Y-values.

public:
 DataPoint(double xValue, System::String ^ yValues);
public DataPoint (double xValue, string yValues);
new System.Web.UI.DataVisualization.Charting.DataPoint : double * string -> System.Web.UI.DataVisualization.Charting.DataPoint
Public Sub New (xValue As Double, yValues As String)

Parameters

xValue
Double

The X-value of the data point.

yValues
String

A string of Y-values separated by commas.

Remarks

This constructor can be used to create and initialize a new instance of the DataPoint class.

However, it is highly recommended that you instead add data points at run time, using the Points collection property.

Applies to