Gets or sets the X coordinate of a 3D point.
X coordinate of the point.
Visual Basic (Declaration) | |
---|---|
Public Property X As Single |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public float X {get; set;} |
Return Value
The X coordinate of a 3D point.
Any point used in custom 3D drawing (accomplished using GDI+) must be transformed from X, Y and Z (3D) coordinates into X and Y (2D) coordinates using the TransformPoints method. This method takes an array of Point3D objects for its one parameter, and by calling TransformPoints the X and Y property values are changed to reflect the 3-dimensional space.
These new X and Y coordinates are then changed to absolute coordinates (e.g. using the GetAbsolutePoint method of a ChartGraphics object) and then used for GDI+ method calls. For more information see the "Custom Drawing Section" in the Working with 3D Charts topic.
A relative X coordinate can be obtained from an axis value using the ValueToPosition method of the Axis class.
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