Control.SizeFromClientSize Method (Size)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines the size of the entire control from the height and width of its client area.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected virtual Size SizeFromClientSize(
	Size clientSize
)

Parameters

clientSize
Type: System.Drawing.Size

A Size value representing the height and width of the control's client area.

Return Value

Type: System.Drawing.Size

A Size value representing the height and width of the entire control.

.NET Framework
Available since 2.0
Return to top
Show: