Axis.GetPosition Method (Double)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Converts an axis value to a relative position (0-100%). If an axis is logarithmic, the value is converted to a linear scale.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public double GetPosition(
	double axisValue


Type: System.Double

The axis value.

Return Value

Type: System.Double

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

.NET Framework
Available since 4.0
Return to top