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

适用于