ElementPosition.Y 属性
定义
获取或设置适用图表元素左上角的相对 Y 坐标。Gets or sets the relative Y-coordinate of the top-left corner of an applicable chart element.
public:
property float Y { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public float Y { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Y : single with get, set
Public Property Y As Single
属性值
一个 float 值,该值表示适用图表元素左上角的 Y 坐标。A float value that represents the Y-coordinate of the top-left corner of an applicable chart element.
- 属性
注解
Y属性始终以相对坐标表示, ChartArea 如果在图表区域内绘制,则相对于对象,如果在图表区元素之外绘制,则相对于整个图表图像。The Y property is always expressed in relative coordinates, and is either relative to a ChartArea object if plotted within a chart area, or relative to the entire chart image if plotted outside of a chart area element.
此属性始终使用相对坐标;如果将值设置为0-100 像素范围以外的值,则会引发异常。This property always uses relative coordinates; if you set a value outside the 0-100 pixel range, an exception will be thrown.