Int32Rect.Equality(Int32Rect, Int32Rect) 运算符
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
比较两个矩形是否完全相等。
public:
static bool operator ==(System::Windows::Int32Rect int32Rect1, System::Windows::Int32Rect int32Rect2);
public static bool operator == (System.Windows.Int32Rect int32Rect1, System.Windows.Int32Rect int32Rect2);
static member ( = ) : System.Windows.Int32Rect * System.Windows.Int32Rect -> bool
Public Shared Operator == (int32Rect1 As Int32Rect, int32Rect2 As Int32Rect) As Boolean
参数
- int32Rect1
- Int32Rect
要比较的第一个矩形。
- int32Rect2
- Int32Rect
要比较的第二个矩形。
返回
如果 int32Rect1
和 int32Rect2
具有相同的 X、Y、Width 和 Height,则返回 true
;否则,返回 false
。
注解
此运算符的等效方法为 Int32Rect.Equals(Int32Rect, Int32Rect)