Method DeflatedWithPadding
DeflatedWithPadding(Rectangle, Padding)
Deflates given rectangle by the specified padding.
public static Rectangle DeflatedWithPadding(this Rectangle r, Padding p)
Parameters
r
RectangleGiven rectangle.
p
PaddingSystem.Windows.Forms.Padding specifying amount to decrease this rectangle.
Returns
- Rectangle
Rectangle object with new size.