Share via


Size.Equality(Size, Size) Operator

Definition

Determines whether two sizes have the same width and height.

public:
 static bool operator ==(Microsoft::Maui::Graphics::Size s1, Microsoft::Maui::Graphics::Size s2);
public static bool operator ==(Microsoft.Maui.Graphics.Size s1, Microsoft.Maui.Graphics.Size s2);
static member ( = ) : Microsoft.Maui.Graphics.Size * Microsoft.Maui.Graphics.Size -> bool
Public Shared Operator == (s1 As Size, s2 As Size) As Boolean

Parameters

s1
Size

The first size to compare.

s2
Size

The second size to compare.

Returns

true if the sizes have the same width and height; otherwise, false.

Applies to