Point3D.X 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 3D 点的 X 坐标。
public:
property float X { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
public float X { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.X : single with get, set
Public Property X As Single
属性值
一个 float 表示 3D 点的 X 坐标。
- 属性
注解
使用 GDI+ 完成的自定义 3D 绘图中使用的任何点都必须使用 TransformPoints 该方法从 X、Y 和 Z (3D) 坐标转换为 X 和 Y (2D) 坐标。 此方法采用 Point3D 对象的数组作为其唯一参数。 通过调用 TransformPoints 该方法,将更改 X 和 Y 属性值以反映三维空间。
然后,这些新的 X 和 Y 坐标将使用 GetAbsolutePoint 该方法转换为绝对坐标。 然后,它们用于 GDI+ 方法调用。
可以通过调用 ValueToPosition 方法从轴值获取相对 X 坐标。