Size.Inequality(Size, Size) Operator

Definition

Whether two Sizes have unequal values.

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

Parameters

s1
Size

The first Size to compare.

s2
Size

The second Size to compare.

Returns

Boolean

true if s1 and s2 have unequal values for either Height or 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