Axis.GetPosition Method (Double)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
Show: