Size.Equals Size.Equals Size.Equals Size.Equals Method

定義

多載

Equals(Size) Equals(Size) Equals(Size) Equals(Size)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

測試指定的物件是否為和此 Size 結構具有相同維度的 Size 結構。Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.

Equals(Size) Equals(Size) Equals(Size) Equals(Size)

public:
 virtual bool Equals(System::Drawing::Size other);
public bool Equals (System.Drawing.Size other);
override this.Equals : System.Drawing.Size -> bool
Public Function Equals (other As Size) As Boolean

參數

other
Size Size Size Size

傳回

實作

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

測試指定的物件是否為和此 Size 結構具有相同維度的 Size 結構。Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object Object Object Object

要測試的 ObjectThe Object to test.

傳回

如果 objSize,且具有與這個 Size 相同的寬度和高度,則為 true,否則為 falsetrue if obj is a Size and has the same width and height as this Size; otherwise, false.

適用於