Point3D.Z 属性

定义

获取或设置三维点的 Z 坐标。Gets or sets the Z coordinate of a 3D point.

public:
 property float Z { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
public float Z { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Z : single with get, set
Public Property Z As Single

属性值

Single

三维点的 Z 坐标,它以相关图表区域深度的百分比来度量。The Z coordinate of a 3D point, which is measured as a percentage of the relevant chart area's depth.

属性

注解

此 Z 属性始终以相关图表区域深度的百分比表示。This Z property is always expressed as a percentage of the relevant chart area's depth. 对于三维图表,Z 坐标是相对的,其值为0表示图表区的背面墙,值为100表示图表区的前墙。With 3D charts, Z coordinates are relative, and have a value of 0 for the back wall of the chart area and a value of 100 for the front wall of the chart area.

注意 此 Z 属性可能小于零 (位于图表区域) 或大于 100 (的图表区域) 。Note This Z property may be less than zero (located behind a chart area) or greater than 100 (located in front of a chart area).

自定义三维绘图中使用的任何点(使用 GDI + 完成)必须使用方法从 X、Y 和 Z (3D) 坐标转换为 X 和 Y (2D) 坐标 TransformPointsAny point used in custom 3D drawing - which is accomplished using GDI+ - must be transformed from X, Y and Z (3D) coordinates into X and Y (2D) coordinates using the TransformPoints method. 此方法采用 Point3D 对象的数组作为其唯一参数。This method takes an array of Point3D objects as its only parameter. 通过调用 TransformPoints 方法,X 和 Y 属性值将更改,以反映三维空间。By calling the TransformPoints method, the X and Y property values are changed to reflect the 3-dimensional space.

然后,使用方法将这些新的 X 和 Y 坐标转换为绝对坐标 GetAbsolutePointThese new X and Y coordinates are then converted to absolute coordinates by using the GetAbsolutePoint method. 然后,它们将用于 GDI + 方法调用。They are then used for GDI+ method calls.

可以使用和方法为序列获取相对 Z 坐标 GetSeriesDepth GetSeriesZPositionRelative Z coordinates can be obtained for series by using the GetSeriesDepth and GetSeriesZPosition methods.

适用于