Size.Equals Method

Definition

Overloads

Equals(Size)
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)

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

Parameters

other
Size

Returns

Boolean

Implements

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

Parameters

obj
Object

테스트할 Object입니다.The Object to test.

Returns

Boolean

objSize이고 이 Size와 너비와 높이가 같으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.true if obj is a Size and has the same width and height as this Size; otherwise, false.

Applies to