Point 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示二維空間中的 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 | |
| Y |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) | |
| Equals(Point) |
比較兩個 Point 結構以求相等。 |
| GetHashCode() |
回傳此 Point的雜湊碼。 |
| ToString() | |
| ToString(IFormatProvider) |
操作員
| 名稱 | Description |
|---|---|
| Equality(Point, Point) |
比較兩個 Point 結構以求相等。 |
| Inequality(Point, Point) |
比較兩種 Point 結構的不平等。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IFormattable.ToString(String, IFormatProvider) |
關於此成員的描述,請參見 ToString(String, IFormatProvider)。 |
擴充方法
| 名稱 | Description |
|---|---|
| ToVector2(Point) |
表示二維空間中的 x 和 Y 座標組。 也可以代表特定屬性使用方式的邏輯點。 |