Edit

Share via


CGRect.Equality(CGRect, CGRect) Operator

Definition

Tests whether two CGRect structures have equal location and size.

public static bool operator ==(CoreGraphics.CGRect left, CoreGraphics.CGRect right);
static member ( = ) : CoreGraphics.CGRect * CoreGraphics.CGRect -> bool

Parameters

left
CGRect

<attribution license="cc4" from="Microsoft" modified="false"></attribution>The CGRect structure that is to the left of the equality operator.

right
CGRect

<attribution license="cc4" from="Microsoft" modified="false"></attribution>The CGRect structure that is to the right of the equality operator.

Returns

<attribution license="cc4" from="Microsoft" modified="false"></attribution>

This operator returns true if the two CGRect structures have equal X, Y, Width, and Height properties.

Applies to