Size.Equality(Size, Size) Operator

Definition

Whether two Sizes have equal values.

public static bool operator == (Xamarin.Forms.Size s1, Xamarin.Forms.Size s2);
static member ( = ) : Xamarin.Forms.Size * Xamarin.Forms.Size -> bool

Parameters

s1
Size

A Size to be compared.

s2
Size

A Size to be compared.

Returns

System.Boolean

true if s1 and s2 have equal values for Height and Width.

Remarks

Application developers should be aware that Width and Height are stored internally as doubles. Values with small differences may compare incorrectly due to internal rounding limitations.

Applies to