Size::Equals 메서드(gdiplustypes.h)

Size::Equals 메서드는 두 Size 개체가 같은지 여부를 결정합니다.

구문

BOOL Equals(
  [in, ref] const Size & sz
);

매개 변수

[in, ref] sz

형식: const Size

Size 개체와 비교되는 Size 개체에 대한 참조입니다.

반환 값

형식: BOOL

Size 개체의 WidthHeight 데이터 멤버가 같으면 이 메서드는 TRUE를 반환합니다. 그렇지 않으면 FALSE를 반환합니다.

설명

WidthHeight 데이터 멤버가 같으면 두 Size 개체가 같음으로 정의됩니다.

예제

다음 예제에서는 Rect 개체를 만들고 사각형의 크기를 가져오며 사각형이 같은지 여부를 확인합니다.

Rect rect(50, 30, 200, 100);
Size desiredSize(200, 100);
Size rectSize;

// Get the size of the rectangle.
rect.GetSize(&rectSize);

if(rectSize.Equals(desiredSize))
{
   // The rectangle has the desired size.
} 

요구 사항

   
지원되는 최소 클라이언트 Windows XP, Windows 2000 Professional [데스크톱 앱만 해당]
지원되는 최소 서버 Windows 2000 Server[데스크톱 앱만]
대상 플랫폼 Windows
헤더 gdiplustypes.h(Gdiplus.h 포함)
라이브러리 Gdiplus.lib
DLL Gdiplus.dll

참고 항목

Rect

크기

Sizef