Export (0) Print
Expand All

Annotation.AnchorX Property

Gets or sets the X coordinate to which the annotation is anchored.

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

public virtual double AnchorX { get; set; }

Property Value

Type: System.Double
A double value that represents the X coordinate to which an annotation is anchored.

The annotation is anchored to the X 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 X 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.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft