PointF PointF PointF PointF Struct

定義

表示浮點 X 和 Y 座標的排序配對,該配對會定義二維平面中的點。Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

public value class PointF : IEquatable<System::Drawing::PointF>
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct PointF : IEquatable<System.Drawing.PointF>
type PointF = struct
Public Structure PointF
Implements IEquatable(Of PointF)
繼承
屬性
實作

備註

要轉換PointFPoint,使用Point.RoundPoint.TruncateTo convert a PointF to a Point, use Point.Round or Point.Truncate.

建構函式

PointF(Single, Single) PointF(Single, Single) PointF(Single, Single) PointF(Single, Single)

使用指定的座標,初始化 PointF 類別的新執行個體。Initializes a new instance of the PointF class with the specified coordinates.

欄位

Empty Empty Empty Empty

表示 PointF 類別的新執行個體,其具有未初始化的成員資料。Represents a new instance of the PointF class with member data left uninitialized.

屬性

IsEmpty IsEmpty IsEmpty IsEmpty

取得值,指出這個 PointF 是否為空的。Gets a value indicating whether this PointF is empty.

X X X X

取得或設定這個 PointF 的 X 座標。Gets or sets the x-coordinate of this PointF.

Y Y Y Y

取得或設定這個 PointF 的 Y 座標。Gets or sets the y-coordinate of this PointF.

方法

Add(PointF, Size) Add(PointF, Size) Add(PointF, Size) Add(PointF, Size)

根據指定的 PointF 轉譯指定的 SizeTranslates a given PointF by the specified Size.

Add(PointF, SizeF) Add(PointF, SizeF) Add(PointF, SizeF) Add(PointF, SizeF)

根據指定的 PointF 轉譯指定的 SizeFTranslates a given PointF by a specified SizeF.

Equals(PointF) Equals(PointF) Equals(PointF) Equals(PointF)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定這個 PointF 是否包含與指定 Object 相同的座標。Specifies whether this PointF contains the same coordinates as the specified Object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個 PointF 結構的雜湊程式碼。Returns a hash code for this PointF structure.

Subtract(PointF, Size) Subtract(PointF, Size) Subtract(PointF, Size) Subtract(PointF, Size)

根據指定大小的負數轉譯 PointFTranslates a PointF by the negative of a specified size.

Subtract(PointF, SizeF) Subtract(PointF, SizeF) Subtract(PointF, SizeF) Subtract(PointF, SizeF)

根據指定大小的負數轉譯 PointFTranslates a PointF by the negative of a specified size.

ToString() ToString() ToString() ToString()

將這個 PointF 轉換為人們可讀取的 (Human Readable) 字串。Converts this PointF to a human readable string.

運算子

Addition(PointF, SizeF) Addition(PointF, SizeF) Addition(PointF, SizeF) Addition(PointF, SizeF)

根據指定的 PointF 轉譯 SizeFTranslates the PointF by the specified SizeF.

Addition(PointF, Size) Addition(PointF, Size) Addition(PointF, Size) Addition(PointF, Size)

根據指定的 PointF 來轉換 SizeTranslates a PointF by a given Size.

Equality(PointF, PointF) Equality(PointF, PointF) Equality(PointF, PointF) Equality(PointF, PointF)

比較兩個 PointF 結構。Compares two PointF structures. 結果會指定兩個 X 結構的 YPointF 屬性值是否相等。The result specifies whether the values of the X and Y properties of the two PointF structures are equal.

Inequality(PointF, PointF) Inequality(PointF, PointF) Inequality(PointF, PointF) Inequality(PointF, PointF)

判斷指定點的座標是否不相等。Determines whether the coordinates of the specified points are not equal.

Subtraction(PointF, Size) Subtraction(PointF, Size) Subtraction(PointF, Size) Subtraction(PointF, Size)

根據指定 PointF 的負數來轉換 SizeTranslates a PointF by the negative of a given Size.

Subtraction(PointF, SizeF) Subtraction(PointF, SizeF) Subtraction(PointF, SizeF) Subtraction(PointF, SizeF)

根據指定 PointF 的負數轉譯 SizeFTranslates a PointF by the negative of a specified SizeF.

適用於