ElementPosition.X 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定相關圖表元素左上角的相對 X 座標。
public:
property float X { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public float X { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.X : single with get, set
Public Property X As Single
屬性值
代表 float 該圖表元素左上角 X 座標的值。
- 屬性
備註
該 X 性質總是以相對座標表示,若繪製在圖表區域內,則相對於 ChartArea 物體;若繪製在圖表區域外,則相對於整個圖表影像。
此性質總是使用相對座標;如果你設定的值超出 0-100 像素範圍,就會拋出例外。