共用方式為


CornerRadius.Equality(CornerRadius, CornerRadius) 運算子

定義

比較兩個 CornerRadius 結構是否相等。

public:
 static bool operator ==(System::Windows::CornerRadius cr1, System::Windows::CornerRadius cr2);
public static bool operator == (System.Windows.CornerRadius cr1, System.Windows.CornerRadius cr2);
static member ( = ) : System.Windows.CornerRadius * System.Windows.CornerRadius -> bool
Public Shared Operator == (cr1 As CornerRadius, cr2 As CornerRadius) As Boolean

參數

cr1
CornerRadius

要比較的第一個 CornerRadius

cr2
CornerRadius

要比較的第二個 CornerRadius

傳回

如果 cr1cr2 的所有邊角值均相等 (TopLeftTopRightBottomLeftBottomRight 的值相同),則為 true;如果 cr1cr2 有一或多個邊角值不同,則為 false

適用於