Breyta

Deila með


Size.Equals Method

Definition

Compares instances of Size and other objects for equality.

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.

Equals(Size, Size)

Compares two instances of Size for equality.

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 the sizes are equal; otherwise, false.

Remarks

Double values can result in an error when operated upon. Values that are logically equal might fail to result in a value of true.

Applies to

Equals(Size)

Compares a value to an instance of Size for equality.

public:
 bool Equals(System::Windows::Size value);
public bool Equals (System.Windows.Size value);
override this.Equals : System.Windows.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.

Remarks

Double values can result in an error when operated upon. Values that are logically equal might fail to result in a value of true.

Applies to

Equals(Size, Size)

Compares two instances of Size for equality.

public:
 static bool Equals(System::Windows::Size size1, System::Windows::Size size2);
public static bool Equals (System.Windows.Size size1, System.Windows.Size size2);
static member Equals : System.Windows.Size * System.Windows.Size -> bool
Public Shared Function Equals (size1 As Size, size2 As Size) As Boolean

Parameters

size1
Size

The first instance of Size to compare.

size2
Size

The second instance of Size to compare.

Returns

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

Remarks

Double values can result in an error when operated upon. Values that are logically equal might fail to result in a value of true.

Applies to