Rect::GetSize method (gdiplustypes.h)

The Rect::GetSize method gets the width and height of the rectangle.

Syntax

void GetSize(
  [out] Size *size
);

Parameters

[out] size

Type: Size*

Pointer to a Size object that receives the width and height of the rectangle.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Pens, Lines, and Rectangles

Rect

Rect::GetBottom

Rect::GetLeft

Rect::GetRight

Rect::GetTop

RectF

Size

Using a Pen to Draw Lines and Rectangles