Rectangle.Equality(Rectangle, Rectangle) 運算子

定義

測試兩個 Rectangle 結構是否具有相等的位置和大小。

public:
 static bool operator ==(System::Drawing::Rectangle left, System::Drawing::Rectangle right);
public static bool operator == (System.Drawing.Rectangle left, System.Drawing.Rectangle right);
static member ( = ) : System.Drawing.Rectangle * System.Drawing.Rectangle -> bool
Public Shared Operator == (left As Rectangle, right As Rectangle) As Boolean

參數

left
Rectangle

Rectangle 結構,位在等號比較運算子的左方。

right
Rectangle

Rectangle 結構,位在等號比較運算子的右方。

傳回

如果兩個 Rectangle 結構具有相等的 XYWidthHeight 屬性,則這個運算子會傳回 true

適用於