Annotation.X Property

Definition

Gets or sets the X coordinate of an annotation.

C#
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.DoubleNanValueConverter))]
public virtual double X { get; set; }

Property Value

A double value that represents the X coordinate of an annotation's position.

Attributes

Remarks

The X coordinate of an annotation is specified in relative chart coordinates or in axes coordinates. Relative chart coordinates are used by default.

To use axes coordinates, anchor an annotation to a data point using the AnchorDataPoint property, or set the annotation axes using the AxisX and AxisY properties.

Set the X position to NaN to automatically calculate position when the annotation has been anchored using the AnchorDataPoint property or the AnchorX and AnchorY properties.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1