DataPoint.XValue 屬性

定義

取得或設定某個資料點的 X 值。

public:
 property double XValue { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DataPointValueConverter))]
public double XValue { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DataPointValueConverter))>]
member this.XValue : double with get, set
Public Property XValue As Double

屬性值

A double 代表資料點的 X 值。

屬性

備註

所有圖表類型都可以以散點圖或非散點圖顯示,因為 X 值和 Y 值都可以設定。 設定 X 值會產生散點圖,而不設定此特性(相當於將 X 設為零)則會產生非散點圖。 例如,要繪製點狀圖類型,加入 X 值為零的資料點。 要顯示傳統散點圖,可以加入X值非零的資料點。

資料點的 X 值不一定要設定。 若未設定,則依序繪製資料點,使用其索引值 DataPointCollection

適用於