Int32Rect.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the specified rectangles are equal.
Overloads
Equals(Object) |
Determines whether the specified rectangle is equal to this rectangle. |
Equals(Int32Rect) |
Determines whether the specified rectangle is equal to this rectangle. |
Equals(Int32Rect, Int32Rect) |
Determines whether the specified rectangles are equal. |
Equals(Object)
Determines whether the specified rectangle is equal to this rectangle.
public:
override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean
Parameters
- o
- Object
The object to compare to the current rectangle.
Returns
true
if o
is an Int32Rect and has the same X, Y, Width, and Height as this rectangle; otherwise, false
.
Remarks
This operation tests for object equality.
Applies to
Equals(Int32Rect)
Determines whether the specified rectangle is equal to this rectangle.
public:
bool Equals(System::Windows::Int32Rect value);
public bool Equals (System.Windows.Int32Rect value);
override this.Equals : System.Windows.Int32Rect -> bool
Public Function Equals (value As Int32Rect) As Boolean
Parameters
- value
- Int32Rect
The rectangle to compare to the current rectangle.
Returns
true
if value
has the same X, Y, Width, and Height as this rectangle; otherwise, false
.
Remarks
This operation tests for object equality.
Applies to
Equals(Int32Rect, Int32Rect)
Determines whether the specified rectangles are equal.
public:
static bool Equals(System::Windows::Int32Rect int32Rect1, System::Windows::Int32Rect int32Rect2);
public static bool Equals (System.Windows.Int32Rect int32Rect1, System.Windows.Int32Rect int32Rect2);
static member Equals : System.Windows.Int32Rect * System.Windows.Int32Rect -> bool
Public Shared Function Equals (int32Rect1 As Int32Rect, int32Rect2 As Int32Rect) As Boolean
Parameters
- int32Rect1
- Int32Rect
The first rectangle to compare.
- int32Rect2
- Int32Rect
The second rectangle to compare.
Returns
true
if int32Rect1
and int32Rect2
have the same X, Y, Width, and Height; otherwise, false
.
Remarks
This operation tests for object equality.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기