Dundas Chart for Windows Forms
PixelPositionToValue Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > SubAxis Class : PixelPositionToValue Method


position

Converts an absolute pixel position along an axis to an axis value.


This function converts pixel position to an axis value. If an axis has logarithmic scale, value is converted to a linear scale.

Syntax

Visual Basic (Declaration)  
Public Function PixelPositionToValue( _
   ByVal position As Double _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As SubAxis
Dim position As Double
Dim value As Double
 
value = instance.PixelPositionToValue(position)
C#  
public double PixelPositionToValue( 
   double position
)

Parameters

position

Return Value

The axis value that corresponds to the specified absolute pixel position along the axis.
Axis value.

Remarks

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 picture for a horizontal axis; the top border of the chart picture 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.

Requirements

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

See Also

© 2009 All Rights Reserved.