Axis.ValueToPosition(Double) Method

Definition

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.

C#
public double ValueToPosition(double axisValue);

Parameters

axisValue
Double

The axis value to be converted.

Returns

A double value that represents the relative position (0-100%).

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1