PointF 结构
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示在二维平面中定义点的浮点 x 和 y 坐标的有序对。
public value class PointF : IEquatable<System::Drawing::PointF>
public value class PointF
public struct PointF : IEquatable<System.Drawing.PointF>
public struct PointF
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct PointF
type PointF = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PointF = struct
Public Structure PointF
Implements IEquatable(Of PointF)
Public Structure PointF
- 继承
- 属性
- 实现
注解
若要将 a PointF 转换为 Point,请使用 Point.Round 或 Point.Truncate。
构造函数
| 名称 | 说明 |
|---|---|
| PointF(Single, Single) |
使用指定的坐标初始化类的新实例 PointF 。 |
| PointF(Vector2) |
字段
| 名称 | 说明 |
|---|---|
| Empty |
表示类的新实例 PointF ,其中未初始化成员数据。 |
属性
| 名称 | 说明 |
|---|---|
| IsEmpty |
获取一个值,该值指示这 PointF 是否为空。 |
| X |
获取或设置此 PointF对象的 x 坐标。 |
| Y |
获取或设置此 PointF值的 y 坐标。 |
方法
| 名称 | 说明 |
|---|---|
| Add(PointF, Size) | |
| Add(PointF, SizeF) | |
| Equals(Object) | |
| Equals(PointF) |
指示当前对象是否等于同一类型的另一个对象。 |
| GetHashCode() |
返回此 PointF 结构的哈希代码。 |
| Subtract(PointF, Size) |
PointF按指定大小的负值转换 a。 |
| Subtract(PointF, SizeF) |
PointF按指定大小的负值转换 a。 |
| ToString() |
将此 PointF 字符串转换为人工可读字符串。 |
| ToVector2() |