Share via


CGRect.Equals Method

Definition

Overloads

Name Description
Equals(CGRect)

Tests whether rect is a CGRect structure with the same location and size of this CGRect structure.

Equals(Object)

Tests whether obj is a CGRect structure with the same location and size of this CGRect structure.

Equals(CGRect)

Tests whether rect is a CGRect structure with the same location and size of this CGRect structure.

public bool Equals(CoreGraphics.CGRect rect);
override this.Equals : CoreGraphics.CGRect -> bool

Parameters

rect
CGRect

<attribution license="cc4" from="Microsoft" modified="false"></attribution>The 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.

Implements

Applies to

Equals(Object)

Tests whether obj is a CGRect structure with the same location and size of this CGRect structure.

public override bool Equals(object? obj);
override this.Equals : obj -> bool

Parameters

obj
Object

<attribution license="cc4" from="Microsoft" modified="false"></attribution>The 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