DundasWinExtensions
GetAbsolutePoint Method
See Also  Send comments on this topic.
DundasWinExtensions Assembly > Dundas.Extensions Namespace > RadarChartPaintHelper Class : GetAbsolutePoint Method


chart
Chart control object.
xAxis
Axis X of the charting area.
yAxis
Axis Y of the charting area.
xLabel
Axis label (or string X value) of point in values of Axis X.
yValue
Y value of point in values of Axis Y.
Returns absolute coordinates of a point which is specified by X value and Y value.

Syntax

Visual Basic (Declaration)  
Public Shared Function GetAbsolutePoint( _
   ByVal chart As Chart, _
   ByVal xAxis As Axis, _
   ByVal yAxis As Axis, _
   ByVal xLabel As String, _
   ByVal yValue As Double _
) As PointF
Visual Basic (Usage) Copy Code
Dim chart As Chart
Dim xAxis As Axis
Dim yAxis As Axis
Dim xLabel As String
Dim yValue As Double
Dim value As PointF
 
value = RadarChartPaintHelper.GetAbsolutePoint(chart, xAxis, yAxis, xLabel, yValue)
C#  
public static PointF GetAbsolutePoint( 
   Chart chart,
   Axis xAxis,
   Axis yAxis,
   string xLabel,
   double yValue
)

Parameters

chart
Chart control object.
xAxis
Axis X of the charting area.
yAxis
Axis Y of the charting area.
xLabel
Axis label (or string X value) of point in values of Axis X.
yValue
Y value of point in values of Axis Y.

Return Value

Returns absolute coordinates of the point which is spefified by X and Y values.

Exceptions

Exception Description
ArgumentNullException Thrown when chart, xAxis or yAxis parameter is null.
ArgumentException Thrown when axes do not belong to any ChartArea within the Chart, or there is no Radar or Rose chart type within this ChartArea, or X value could not be find as axis label within the ChartArea.

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.