Point.Inequality(Point, Point) 運算子

定義

比較兩個 Point 結構是否不相等。Compares two Point structs for inequality.

public:
 static bool operator !=(Windows::Foundation::Point point1, Windows::Foundation::Point point2);
public static bool operator != (Windows.Foundation.Point point1, Windows.Foundation.Point point2);
static member op_Inequality : Windows.Foundation.Point * Windows.Foundation.Point -> bool
Public Shared Operator != (point1 As Point, point2 As Point) As Boolean

參數

point1
Point

要比較的第一個點。The first point to compare.

point2
Point

要比較的第二個點。The second point to compare.

傳回

Boolean

point1point2 具有不同的 XY 值,則為 true;若 point1point2 具有相同的 XY 值,則為 false。true if point1 and point2 have different X or Y values; false if point1 and point2 have the same X and Y values.

備註

此結構代表 Windows 執行階段 (WinRT) 結構的 .NET 投影 PointThis struct represents the .NET projection of the Windows Runtime (WinRT) Point struct. 如需詳細資訊,請參閱 UWP API 參考中的 For more information, see Point in the UWP API reference.

如需此成員的詳細資訊和範例,請參閱 Point.Inequality .NET FRAMEWORK API 參考中的。For more information and examples of this member, see Point.Inequality in the .NET Framework API reference. (範例會示範 WPF 的使用方式,而且可能無法直接轉譯成 UWP XAML。 ) (Examples show WPF usage and might not translate directly to UWP XAML.)

適用於