ערוך

שתף באמצעות


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::Windows::Forms::DataVisualization::Charting::Series ^ series);
public DataPoint (System.Windows.Forms.DataVisualization.Charting.Series series);
new System.Windows.Forms.DataVisualization.Charting.DataPoint : System.Windows.Forms.DataVisualization.Charting.Series -> System.Windows.Forms.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.Windows.Forms.DataVisualization.Charting.DataPoint : double * double -> System.Windows.Forms.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.Windows.Forms.DataVisualization.Charting.DataPoint : double * double[] -> System.Windows.Forms.DataVisualization.Charting.DataPoint
Public Sub New (xValue As Double, yValues As Double())

Parameters

xValue
Double

The X-value of the data point.

yValues
Double[]

An array of Y-values 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, 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.Windows.Forms.DataVisualization.Charting.DataPoint : double * string -> System.Windows.Forms.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 comma-separated string of Y-values 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