CustomLabel.FromPosition Propriedade
Definição
Obtém ou define a posição inicial, em coordenadas do eixo, do rótulo personalizado.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.Web.UI.DataVisualization.Charting.AxisLabelDateValueConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public double FromPosition { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.AxisLabelDateValueConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.FromPosition : double with get, set
Public Property FromPosition As Double
Valor da propriedade
Um valor double que representa o início do intervalo do eixo ao qual o rótulo é aplicado.A double value that represents the beginning of the axis range that the label is applied to.
- Atributos
Comentários
A FromPosition propriedade determina a posição inicial do intervalo de eixo ao qual o rótulo é aplicado.The FromPosition property determines the start position of the axis range the label is applied to.
A diferença entre os valores das ToPosition Propriedades e FromPosition determina onde o texto do rótulo será exibido.The difference between the values of the ToPosition and FromPosition properties determines where the label text will be displayed. Por exemplo, suponha que o eixo X tenha uma escala que varia de 1 a 5 (1, 2, 3, 4, 5).For example, suppose the X-axis has a scale that ranges from 1 to 5 (1, 2 ,3 , 4, 5). Para exibir um rótulo personalizado logo abaixo do segundo ponto, você definiria a ToPosition propriedade como 1,5 e a FromPosition propriedade como 2,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.
Se o XValueType -ou YValueType , dependendo do eixo em questão-estiver definido como um DateTime valor, essa FromPosition propriedade será exibida como um DateTime valor no designer.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.
Essa propriedade não deve ser definida com o mesmo valor que a ToPosition propriedade.This property should not be set to the same value as the ToPosition property.