# PointF 结构

## 定义

``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``

PointF

## 构造函数

 用指定坐标初始化 PointF 类的新实例。Initializes a new instance of the PointF class with the specified coordinates.

## 字段

 表示 PointF 类的、成员数据未被初始化的新实例。Represents a new instance of the PointF class with member data left uninitialized.

## 属性

 获取一个值，该值指示此 PointF 是否为空。Gets a value indicating whether this PointF is empty. 获取或设置此 PointF 的 x 坐标。Gets or sets the x-coordinate of this PointF. 获取或设置此 PointF 的 y 坐标。Gets or sets the y-coordinate of this PointF.

## 方法

 按指定的 PointF 平移给定的 Size。Translates a given PointF by the specified Size. 按指定的 PointF 平移给定的 SizeF。Translates a given PointF by a specified SizeF. 指定此 PointF 是否包含与指定 Object 有相同的坐标。Specifies whether this PointF contains the same coordinates as the specified Object. 指示当前对象是否等于同一类型的另一个对象。Indicates whether the current object is equal to another object of the same type. 返回此 PointF 结构的哈希代码。Returns a hash code for this PointF structure. 按指定大小的负值平移 PointF。Translates a PointF by the negative of a specified size. 按指定大小的负值平移 PointF。Translates a PointF by the negative of a specified size. 将此 PointF 转换为可读字符串。Converts this PointF to a human readable string.

## 运算符

 将 PointF 平移给定 Size。Translates a PointF by a given Size. 按指定的 PointF 平移 SizeF。Translates the PointF by the specified SizeF. 比较两个 PointF 结构。Compares two PointF structures. 此结果指定两个 X 结构的 Y 和 PointF 属性的值是否相等。The result specifies whether the values of the X and Y properties of the two PointF structures are equal. 确定指定点的坐标是否不等。Determines whether the coordinates of the specified points are not equal. 将 PointF 平移给定 Size 的负数。Translates a PointF by the negative of a given Size. 按指定 PointF 的负值平移 SizeF。Translates a PointF by the negative of a specified SizeF.