DataPoint 构造函数

定义

初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class.

重载

DataPoint()

初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class.

DataPoint(Series)

初始化 DataPoint 类的新实例,并设置该数据点所属的 SeriesInitializes a new instance of the DataPoint class, and sets the Series that the data point belongs to.

DataPoint(Double, Double)

用指定的 X 和 Y 值初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class with the specified X and Y-value.

DataPoint(Double, Double[])

用一个指定的 X 值和一个 Y 值数组初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class with the specified X-value and an array of Y-values.

DataPoint(Double, String)

用一个指定的 X 值和多个 Y 值初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class with the specified X-value and Y-values.

DataPoint()

初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class.

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

注解

此构造函数可用于创建和初始化类的新实例 DataPointThis constructor can be used to create and initialize a new instance of the DataPoint class.

不过,强烈建议您在运行时使用 collection 属性来添加数据点 PointsHowever, it is highly recommended that you instead add data points at run time, using the Points collection property.

适用于

DataPoint(Series)

初始化 DataPoint 类的新实例,并设置该数据点所属的 SeriesInitializes 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)

参数

series
Series

数据点所属的 Series 对象。The Series object that the data point belongs to.

注解

此构造函数可用于创建和初始化类的新实例 DataPointThis constructor can be used to create and initialize a new instance of the DataPoint class.

不过,强烈建议您在运行时使用 collection 属性来添加数据点 PointsHowever, it is highly recommended that you instead add data points at run time, using the Points collection property.

适用于

DataPoint(Double, Double)

用指定的 X 和 Y 值初始化 DataPoint 类的新实例。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)

参数

xValue
Double

数据点的 X 值。The X-value of the data point.

yValue
Double

数据点的 Y 值。The Y-value of the data point.

注解

此构造函数可用于创建和初始化类的新实例 DataPointThis constructor can be used to create and initialize a new instance of the DataPoint class.

不过,强烈建议您在运行时使用 collection 属性来添加数据点 PointsHowever, it is highly recommended that you instead add data points at run time, using the Points collection property.

适用于

DataPoint(Double, Double[])

用一个指定的 X 值和一个 Y 值数组初始化 DataPoint 类的新实例。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())

参数

xValue
Double

数据点的 X 值。The X-value of the data point.

yValues
Double[]

数据点的 Y 值的数组。An array of Y-values of the data point.

注解

此构造函数可用于创建和初始化类的新实例 DataPointThis constructor can be used to create and initialize a new instance of the DataPoint class.

不过,强烈建议您在运行时使用 collection 属性来添加数据点 PointsHowever, it is highly recommended that you instead add data points at run time, using the Points collection property.

适用于

DataPoint(Double, String)

用一个指定的 X 值和多个 Y 值初始化 DataPoint 类的新实例。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)

参数

xValue
Double

数据点的 X 值。The X-value of the data point.

yValues
String

一个逗号分隔的 string,其中列出了数据点的 Y 值。A comma-separated string of Y-values of the data point.

注解

此构造函数可用于创建和初始化类的新实例 DataPointThis constructor can be used to create and initialize a new instance of the DataPoint class.

不过,强烈建议您在运行时使用 collection 属性来添加数据点 PointsHowever, it is highly recommended that you instead add data points at run time, using the Points collection property.

适用于