Axis.PixelPositionToValue(Double) 方法

定义

将沿轴的绝对像素位置转换为轴值。Converts an absolute pixel position along an axis to an axis value. 此方法仅适用于绘制事件。This method only works in paint events.

public:
 double PixelPositionToValue(double position);
public double PixelPositionToValue (double position);
member this.PixelPositionToValue : double -> double
Public Function PixelPositionToValue (position As Double) As Double

参数

position
Double

像素位置。The pixel position.

返回

一个表示轴值的 double 值。A double value that represents the axis value.

适用于