Share via


CustomLabel.FromPosition 屬性

定義

取得或設定自訂標籤的開始位置 (以軸座標為單位)。

public:
 property double FromPosition { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxisLabelDateValueConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public double FromPosition { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxisLabelDateValueConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.FromPosition : double with get, set
Public Property FromPosition As Double

屬性值

double 值,表示要套用標籤的座標軸範圍起點。

屬性

備註

屬性 FromPosition 會決定套用標籤之座標軸範圍的開始位置。

FromPosition 屬性的值 ToPosition 之間的差異會決定標籤文字的顯示位置。 例如,假設 X 軸的尺規範圍從 1 到 5 (1,2,3,4,5) 。 為了在第二個點正下方顯示自訂標籤,您會將 ToPosition 屬性設定為 1.5,並將 FromPosition 屬性設定為 2.5。

XValueType如果 - 或 YValueType ,取決於有問題的座標軸設定為 DateTime 值,則此屬性 FromPosition 會顯示為 DateTime 設計工具中的值。

此屬性不應設定為與 ToPosition 屬性相同的值。

適用於