Size.Equality(Size, Size) 操作员

定义

比较 Size 的两个实例是否相等。Compares two instances of Size for equality.

public:
 static bool operator ==(System::Windows::Size size1, System::Windows::Size size2);
public static bool operator == (System.Windows.Size size1, System.Windows.Size size2);
static member ( = ) : System.Windows.Size * System.Windows.Size -> bool
Public Shared Operator == (size1 As Size, size2 As Size) As Boolean

参数

size1
Size

要比较的第一个 Size 实例。The first instance of Size to compare.

size2
Size

要比较的第二个 Size 实例。The second instance of Size to compare.

返回

如果 Size 的两个实例相等,则为 true;否则为 falsetrue if the two instances of Size are equal; otherwise false.

适用于