Point.Inequality(Point, Point) 操作员

定义

比较两个 Point 对象。Compares two Point objects. 此结果指定两个 X 对象的 YPoint 属性的值是否不等。The result specifies whether the values of the X or Y properties of the two Point objects are unequal.

public:
 static bool operator !=(System::Drawing::Point left, System::Drawing::Point right);
public static bool operator != (System.Drawing.Point left, System.Drawing.Point right);
static member op_Inequality : System.Drawing.Point * System.Drawing.Point -> bool
Public Shared Operator != (left As Point, right As Point) As Boolean

参数

left
Point

要比较的 PointA Point to compare.

right
Point

要比较的 PointA Point to compare.

返回

如果 leftrightX 属性值或 Y 属性值不等,则为 true;否则为 falsetrue if the values of either the X properties or the Y properties of left and right differ; otherwise, false.

适用于