This documentation is archived and is not being maintained.

CustomLabel.FromPosition Property

Gets or sets the beginning position, in axis coordinates, of the custom label.

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

public double FromPosition { get; set; }

Property Value

Type: System.Double
A double value that represents the beginning of the axis range that the label is applied to.

The FromPosition property determines the start position of the axis range the label is applied to.

The difference between the values of the ToPosition and FromPosition properties determines where the label text will be displayed. For example, suppose the X-axis has a scale that ranges from 1 to 5 (1, 2 ,3 , 4, 5). In order to display a custom label just underneath the second point, you would set the ToPosition property to 1.5 and the FromPosition property to 2.5.

If the XValueType—or YValueType, depending on the axis in question—is set to a DateTime value, then this FromPosition property will be displayed as a DateTime value in the designer.

This property should not be set to the same value as the ToPosition property.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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