Redigera

Dela via


Size.Equals Method

Definition

Overloads

Equals(Object)

Compares an object to an instance of Size for equality.

Equals(Size)

Compares a value to an instance of Size for equality.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Size struct. For more information, see Size in the UWP API reference.

For more information about this member, see Size.Equals in the .NET Framework API reference.

Equals(Object)

Compares an object to an instance of Size for equality.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

Parameters

o
Object

The object to compare.

Returns

true if o is a Size value and the sizes of the two objects are equal; otherwise, false.

Applies to

Equals(Size)

Compares a value to an instance of Size for equality.

public:
 bool Equals(Windows::Foundation::Size value);
public bool Equals (Windows.Foundation.Size value);
override this.Equals : Windows.Foundation.Size -> bool
Public Function Equals (value As Size) As Boolean

Parameters

value
Size

The size to compare to this current instance of Size.

Returns

true if the instances of Size are equal; otherwise, false.

Applies to