In This Article

SizeExtensions Class

Provides extension methods for the type System.Windows.Size.

public static class SizeExtensions
Inheritance:
System.Object Object

Methods

IsEffectivelyEqual(Size, Size)

Determines whether the two values are close enough to be considered equal.

public static bool IsEffectivelyEqual(this Size left, Size right)
Parameter Type Description
left System.Windows.Size

The value on the left side of the comparison.

right System.Windows.Size

The value on the left side of the comparison.

Returns

System.Boolean:

true if the two values are close enough to be considered equal; otherwise, false.

IsWithin(Size, Size, Double)

Determines whether the two values are within a specified range.

public static bool IsWithin(this Size left, Size right, double difference)
Parameter Type Description
left System.Windows.Size

The value on the left side of the comparison.

right System.Windows.Size

The value on the left side of the comparison.

difference System.Double

The difference threshold.

Returns

System.Boolean:

true if the two values within a specified range; otherwise, false.

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()