Converts an absolute pixel position along an axis to an axis value.
Visual Basic (Declaration) | |
---|---|
Public Function PixelPositionToValue( _ ByVal position As Double _ ) As Double |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- position
Return Value
The axis value that corresponds to the specified absolute pixel position along the axis.
This method returns a value along an axis for a given absolute pixel position. The given position, measured in pixels, has its origin at: the left border of the chart image for a horizontal axis; the top border of the chart image for a vertical axis. For more information concerning the chart's coordinate system see the Chart Coordinate System topic.
If the axis scale is logarithmic then the axis value is converted so that it uses a linear scale.
The axis value that corresponds to a relative position along an axis can be obtained using the PositionToValue 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