KeyTime.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.
Indicates whether two KeyTime structures are equal.
Overloads
Equals(Object) |
Indicates whether this instance equals the specified object. |
Equals(KeyTime) |
Indicates whether this instance is equal to the specified KeyTime. |
Equals(KeyTime, KeyTime) |
Indicates whether the two specified KeyTime structures are equal. |
Equals(Object)
Indicates whether this instance equals the specified object.
public:
override bool Equals(System::Object ^ value);
public override bool Equals (object value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean
Parameters
- value
- Object
The object to compare with this instance.
Returns
true
if value
is a KeyTime that represents the same length of time as this instance; otherwise false
.
Remarks
Comparing two KeyTime instances with differently typed KeyTimeType properties, including the special values Uniform or Paced, elicits a false return value.
Applies to
Equals(KeyTime)
Indicates whether this instance is equal to the specified KeyTime.
public:
virtual bool Equals(System::Windows::Media::Animation::KeyTime value);
public bool Equals (System.Windows.Media.Animation.KeyTime value);
override this.Equals : System.Windows.Media.Animation.KeyTime -> bool
Public Function Equals (value As KeyTime) As Boolean
Parameters
- value
- KeyTime
The object to compare with this instance.
Returns
true
if value
is equal to this instance; otherwise, false
.
Implements
Applies to
Equals(KeyTime, KeyTime)
Indicates whether the two specified KeyTime structures are equal.
public:
static bool Equals(System::Windows::Media::Animation::KeyTime keyTime1, System::Windows::Media::Animation::KeyTime keyTime2);
public static bool Equals (System.Windows.Media.Animation.KeyTime keyTime1, System.Windows.Media.Animation.KeyTime keyTime2);
static member Equals : System.Windows.Media.Animation.KeyTime * System.Windows.Media.Animation.KeyTime -> bool
Public Shared Function Equals (keyTime1 As KeyTime, keyTime2 As KeyTime) As Boolean
Parameters
- keyTime1
- KeyTime
The first value to compare.
- keyTime2
- KeyTime
The second value to compare.
Returns
true
if the values of keyTime1
and keyTime2
are equal; otherwise false
.
Remarks
Comparing two KeyTime instances with differently typed KeyTimeType properties, including the special values Uniform or Paced, elicits a false return value.