Annotation.AnchorY 属性


获取或设置批注所定位到的 Y 坐标。Gets or sets the Y coordinate to which the annotation is anchored.

 virtual property double AnchorY { double get(); void set(double value); };
public virtual double AnchorY { get; set; }
member this.AnchorY : double with get, set
Public Overridable Property AnchorY As Double



一个 double 值,表示批注所定位到的 Y 坐标。A double value that represents the Y coordinate an annotation is anchored to.



批注定位到 Y 坐标并在相对图表或轴坐标中指定,具体取决于 AxisX 属性值。The annotation is anchored to the Y coordinate and is specified in relative chart or axes coordinates, depending on the AxisX property value.

若要自动定位相对于定位点的批注,请确保 Y 将其属性设置为 NaNTo automatically position an annotation relative to an anchor point make sure its Y property is set to NaN. AnchorAlignment属性可用于将批注的自动位置对齐方式更改为定位点。The AnchorAlignment property can be used to change the automatic position alignment of the annotation to the anchor point. AnchorOffsetXAnchorOffsetY 属性可用于添加额外的间距。The AnchorOffsetX and AnchorOffsetY properties may be used to add extra spacing.

此属性的优先级高于 AnchorDataPoint 属性。This property has a higher priority than the AnchorDataPoint property.

将此值设置为 NaN 以禁用批注定位到值。Set this value to NaN to disable annotation anchoring to the value.