DataPoint 构造函数
定义
重载
| DataPoint() |
初始化 DataPoint 类的新实例。Initializes a new instance of the DataPoint class. |
| DataPoint(Series) |
初始化 DataPoint 类的新实例,并设置该数据点所属的 Series。Initializes 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()
public:
DataPoint();
public DataPoint ();
Public Sub New ()
注解
此构造函数可用于创建和初始化类的新实例 DataPoint 。This constructor can be used to create and initialize a new instance of the DataPoint class.
不过,强烈建议您在运行时使用 collection 属性来添加数据点 Points 。However, it is highly recommended that you instead add data points at run time, using the Points collection property.
适用于
DataPoint(Series)
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)
参数
注解
此构造函数可用于创建和初始化类的新实例 DataPoint 。This constructor can be used to create and initialize a new instance of the DataPoint class.
不过,强烈建议您在运行时使用 collection 属性来添加数据点 Points 。However, it is highly recommended that you instead add data points at run time, using the Points collection property.
适用于
DataPoint(Double, Double)
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.
注解
此构造函数可用于创建和初始化类的新实例 DataPoint 。This constructor can be used to create and initialize a new instance of the DataPoint class.
不过,强烈建议您在运行时使用 collection 属性来添加数据点 Points 。However, it is highly recommended that you instead add data points at run time, using the Points collection property.
适用于
DataPoint(Double, Double[])
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.
注解
此构造函数可用于创建和初始化类的新实例 DataPoint 。This constructor can be used to create and initialize a new instance of the DataPoint class.
不过,强烈建议您在运行时使用 collection 属性来添加数据点 Points 。However, it is highly recommended that you instead add data points at run time, using the Points collection property.
适用于
DataPoint(Double, String)
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.
注解
此构造函数可用于创建和初始化类的新实例 DataPoint 。This constructor can be used to create and initialize a new instance of the DataPoint class.
不过,强烈建议您在运行时使用 collection 属性来添加数据点 Points 。However, it is highly recommended that you instead add data points at run time, using the Points collection property.