CGRect.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.
Overloads
| Equals(Object) | Tests whether  | 
| Equals(CGRect) | Tests whether  | 
Equals(Object)
public override bool Equals(object obj);override this.Equals : obj -> boolParameters
- obj
- Object
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The T:System.Object to test.
Returns
<attribution license="cc4" from="Microsoft" modified="false"></attribution>
This method returns true if obj is a CGRect structure and its X, Y, Width, and Height properties are equal to the corresponding properties of this CGRect structure; otherwise, false.
Applies to
Equals(CGRect)
public bool Equals(CoreGraphics.CGRect rect);override this.Equals : CoreGraphics.CGRect -> boolParameters
- rect
- CGRect
<attribution license="cc4" from="Microsoft" modified="false"></attribution>The T:System.Object to test.
Returns
<attribution license="cc4" from="Microsoft" modified="false"></attribution>
This method returns true if rect is a CGRect structure and its X, Y, Width, and Height properties are equal to the corresponding properties of this CGRect structure; otherwise, false.