Annotation.AxisX Property

.NET Framework (current version)
 

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

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public virtual Axis AxisX { get; set; }

Property Value

Type: System.Windows.Forms.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
Show: