Upravit

Sdílet prostřednictvím


CustomLabel.FromPosition Property

Definition

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

public:
 property double FromPosition { double get(); void set(double value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxisLabelDateValueConverter))]
public double FromPosition { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxisLabelDateValueConverter))>]
member this.FromPosition : double with get, set
Public Property FromPosition As Double

Property Value

A double value that represents the beginning of the axis range that the label is applied to.

Attributes

Remarks

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.

Applies to