Point 結構

定義

表示二維空間中的 x 和 Y 座標組。 也可以代表特定屬性使用方式的邏輯點。

public value class Point : IFormattable
[System.Security.SecurityCritical]
public struct Point : IFormattable
[<System.Security.SecurityCritical>]
type Point = struct
    interface IFormattable
Public Structure Point
Implements IFormattable
繼承
屬性
實作

備註

這代表 Windows 執行階段(WinRT)Point struct 的.NET投影。 更多資訊請參閱 UWP API 參考中的 Point

建構函式

名稱 Description
Point(Double, Double)

初始化 Point 包含指定值的結構體。

屬性

名稱 Description
X

取得或設定 XPoint 結構體的 -座標值。

Y

取得或設定 Y此值 Point的 -座標值。

方法

名稱 Description
Equals(Object)

判斷指定物件是否為 a Point ,以及是否包含與此 Point相同的值。

Equals(Point)

比較兩個 Point 結構以求相等。

GetHashCode()

回傳此 Point的雜湊碼。

ToString()

會產生 StringPoint的表示。

ToString(IFormatProvider)

利用指定的文化特定格式資訊建立 String 此表示 Point

操作員

名稱 Description
Equality(Point, Point)

比較兩個 Point 結構以求相等。

Inequality(Point, Point)

比較兩種 Point 結構的不平等。

明確介面實作

名稱 Description
IFormattable.ToString(String, IFormatProvider)

關於此成員的描述,請參見 ToString(String, IFormatProvider)

擴充方法

名稱 Description
ToVector2(Point)

表示二維空間中的 x 和 Y 座標組。 也可以代表特定屬性使用方式的邏輯點。

適用於

另請參閱