KeyTime.Equality(KeyTime, KeyTime) 运算符

定义

重载运算符,用来比较两个 KeyTime 结构是否相等。

public:
 static bool operator ==(System::Windows::Media::Animation::KeyTime keyTime1, System::Windows::Media::Animation::KeyTime keyTime2);
public static bool operator == (System.Windows.Media.Animation.KeyTime keyTime1, System.Windows.Media.Animation.KeyTime keyTime2);
static member ( = ) : System.Windows.Media.Animation.KeyTime * System.Windows.Media.Animation.KeyTime -> bool
Public Shared Operator == (keyTime1 As KeyTime, keyTime2 As KeyTime) As Boolean

参数

keyTime1
KeyTime

要比较的第一个值。

keyTime2
KeyTime

要比较的第二个值。

返回

Boolean

如果 keyTime1keyTime2 相等,则为 true;否则为 false

注解

比较 KeyTime 不同类型 KeyTimeType 属性的实例(包括特殊值 Uniform 或 Paced)会引发 false 返回值。

适用于