Annotation.AnchorY Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Y coordinate to which the annotation is anchored.
public:
virtual property double AnchorY { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleNanValueConverter))]
public virtual double AnchorY { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleNanValueConverter))>]
member this.AnchorY : double with get, set
Public Overridable Property AnchorY As Double
Property Value
A double
value that represents the Y coordinate an annotation is anchored to.
- Attributes
Remarks
The annotation is anchored to the Y coordinate and is specified in relative chart or axes coordinates, depending on the AxisX property value.
To automatically position an annotation relative to an anchor point make sure its Y property is set to NaN. The AnchorAlignment property can be used to change the automatic position alignment of the annotation to the anchor point. The AnchorOffsetX and AnchorOffsetY properties may be used to add extra spacing.
This property has a higher priority than the AnchorDataPoint property.
Set this value to NaN to disable annotation anchoring to the value.