Annotation.AxisX Property

.NET Framework (current version)

Gets or sets the X axis to which an annotation is attached.

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

public virtual Axis AxisX { get; set; }

Property Value

Type: System.Web.UI.DataVisualization.Charting.Axis

An Axis object to which the annotation is attached.

When an annotation is attached to an axis, its X position is always specified in axes coordinates. To also define the size of an annotation in axes coordinates, make sure the IsSizeAlwaysRelative property is set to false.

Set this value to null to disable attachment to the axis.

.NET Framework
Available since 4.0
Return to top