Share via


AppWindow.ResizeClient(SizeInt32) Method

Definition

Resizes the window to accommodate the specified size for the client area.

public:
 virtual void ResizeClient(SizeInt32 size) = ResizeClient;
void ResizeClient(SizeInt32 const& size);
public void ResizeClient(SizeInt32 size);
function resizeClient(size)
Public Sub ResizeClient (size As SizeInt32)

Parameters

size
SizeInt32

The height and width of the window client area in Win32 client coordinates.

Remarks

Call this method to resize the window if you know the size of the client area you need. Use the ClientSize property to check the size of the client area. The non-client area is calculated for you. Use the Size property to get the height and width of the entire window.

After the window size has changed a Changed event will occur.

Client coordinates are relative to the upper-left corner of the window's client area; the coordinates of the upper-left corner are (0,0). For more information, see Window Coordinate System (Win32).

Applies to

See also