共用方式為


ElementPosition.Y 屬性

定義

取得或設定相關圖表元素左上角的相對 Y 座標。

public:
 property float Y { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
public float Y { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Y : single with get, set
Public Property Y As Single

屬性值

代表 float 該圖表元素左上角 Y 座標的值。

屬性

備註

Y 性質總是以相對座標表示,若繪製在圖表區域內,則相對於 ChartArea 物體;若繪製在圖表區域外,則相對於整個圖表影像。

此性質總是使用相對座標;如果你設定的值超出 0-100 像素範圍,就會拋出例外。

適用於