Annotation.Y Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the Y coordinate of the annotation.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public virtual double Y { get; set; }

Property Value

Type: System.Double

A double value that represents the Y coordinate position of the annotation.

The Y 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 or AxisY properties.

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

.NET Framework
Available since 4.0
Return to top
Show: