Converts a relative coordinate along an axis to an axis value. This method only works in paint events.
This function converts relative position to an axis value. If an axis has logarithmic scale, value is converted to a linear scale.
Visual Basic (Declaration) | |
---|---|
Public Function PositionToValue( _ ByVal position As Double _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- position
- Relative position (0-100%).
Return Value
The axis value that corresponds to the specified relative position along the axis.Axis value.
This method returns a value along an axis for a given relative axis position. The given position is a percentage of the chart picture's width or height, depending on the axis type. Note that the chart coordinate system has the top-left corner of the image at position (0,0) and the bottom-right corner of the chart picture at position (100,100).
For more information concerning the chart's coordinate system see the Chart Coordinate System topic.
If the axis scale is logarithmic then the value is converted so that it uses a linear scale.
The axis value that corresponds to a given absolute pixel position along an axis can be obtained using the PixelPositionToValue method.
This method only works in paint events.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family