Padding.Size Property


Gets the padding information in the form of a System.Drawing.Size.

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

public Size Size { get; }

Property Value

Type: System.Drawing.Size

A System.Drawing.Size containing the padding information.

The Size property performs a type conversion from Padding to System.Drawing.Size. The Horizontal property corresponds to the Size.Width property, and the Vertical property corresponds to the Size.Height property.

Size is convenient for use in many layout calculations.

.NET Framework
Available since 2.0
Return to top