SizeF.Equals 方法

定義

多載

Equals(SizeF)
Equals(Object)

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

Equals(SizeF)

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

參數

other
SizeF

傳回

實作

Equals(Object)

測試指定的物件是否為和此 SizeF 結構具有相同維度的 SizeF 結構。Tests to see whether the specified object is a SizeF structure with the same dimensions as this SizeF 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

要測試的 ObjectThe Object to test.

傳回

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

適用於