Axis.ValueToPosition(Double) 方法

定义

将轴值转换为其相对位置 (0-100%)。Converts an axis value to its relative position (0-100%). 如果轴具有对数刻度,则该值将转换为线性刻度。If an axis has a logarithmic scale, the value is converted to a linear scale. 此方法仅适用于绘制事件。This method only works in paint events.

public:
 double ValueToPosition(double axisValue);
public double ValueToPosition (double axisValue);
member this.ValueToPosition : double -> double
Public Function ValueToPosition (axisValue As Double) As Double

参数

axisValue
Double

轴值。The axis value.

返回

一个 double 值,该值表示相对位置 (0-100%)。A double value that represents the relative position (0-100%).

适用于