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


relative
A PointF structure.
Relative position in %

Takes a PointF object and converts its relative coordinates to absolute coordinates. Useful for custom drawing routines.


Converts Relative Coordinates of Point to Absolute coordinates

Syntax

Visual Basic (Declaration)  
Public Function GetAbsolutePoint( _
   ByVal relative As PointF _
) As PointF
Visual Basic (Usage) Copy Code
Dim instance As ChartGraphics
Dim relative As PointF
Dim value As PointF
 
value = instance.GetAbsolutePoint(relative)
C#  
public PointF GetAbsolutePoint( 
   PointF relative
)

Parameters

relative
A PointF structure.
Relative position in %

Return Value

A PointF object that uses absolute coordinates.


Absolute position

Remarks

Returns a PointF object that utilizes absolute coordinates. Custom drawing, accomplished using GDI+, always uses absolute pixel coordinates.

Note that these absolute coordinates are always for the entire chart image.

This method could be used in conjunction with the GetPositionFromAxis method to draw custom items at a particular point in the chart image.

See the Chart Coordinate System topic for a detailed explanation concerning the Chart's coordinate system.

For an example of this method see the Custom Drawing Using the Paint Events topic (custom drawing for a 2D chart). To see this method used for 3D charts see the "Custom Drawing" section in the Working with 3D Charts topic.

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.