RectangleF.Inequality(RectangleF, RectangleF) 运算符
定义
测试两个 RectangleF 结构的位置或大小是否不同。Tests whether two RectangleF structures differ in location or size.
public:
static bool operator !=(System::Drawing::RectangleF left, System::Drawing::RectangleF right);
public static bool operator != (System.Drawing.RectangleF left, System.Drawing.RectangleF right);
static member op_Inequality : System.Drawing.RectangleF * System.Drawing.RectangleF -> bool
Public Shared Operator != (left As RectangleF, right As RectangleF) As Boolean
参数
- left
- RectangleF
不等运算符左侧的 RectangleF 结构。The RectangleF structure that is to the left of the inequality operator.
- right
- RectangleF
不等运算符右侧的 RectangleF 结构。The RectangleF structure that is to the right of the inequality operator.
返回
如果两个 Rectangle 结构的 X、Y、Width 或 Height 属性值中有任何一个不相等,则返回 true;否则,返回 false。true if any of the X , Y, Width, or Height properties of the two Rectangle structures are unequal; otherwise, false.