共用方式為


KeyTime.Equality(KeyTime, KeyTime) 運算子

定義

比較兩個 KeyTime 結構是否相等的多載運算子 (Overloaded Operator)。

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 傳回值。

適用於