通过


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 像素范围之外设置值,则会引发异常。

适用于