Point3D.Z 属性

定义

获取或设置 3D 点的 Z 坐标。

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

属性值

3D 点的 Z 坐标,以相关图表区域的深度百分比度量。

属性

注解

此 Z 属性始终表示为相关图表区域的深度百分比。 对于三维图表,Z 坐标相对,图表区域的后墙值为 0,图表区域前墙的值为 100。

注意 此 Z 属性可能小于零(位于图表区后面)或大于 100(位于图表区前)。

使用 GDI+ 完成的自定义 3D 绘图中使用的任何点都必须使用 TransformPoints 该方法从 X、Y 和 Z (3D) 坐标转换为 X 和 Y (2D) 坐标。 此方法采用 Point3D 对象的数组作为其唯一参数。 通过调用 TransformPoints 该方法,将更改 X 和 Y 属性值以反映三维空间。

然后,使用 GetAbsolutePoint 该方法将这些新的 X 和 Y 坐标转换为绝对坐标。 然后,它们用于 GDI+ 方法调用。

可以使用和GetSeriesDepth方法获取序列GetSeriesZPosition的相对 Z 坐标。

适用于