CustomLabel.FromPosition Property

.NET Framework (current version)
 

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)

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
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
Available since 4.0
Return to top
Show: