Size.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
.