[]
        
(Showing Draft Content)

C1.Framework.Style.Deflate

Deflate Method

Deflate(Rectangle)

Deflates the specified Rectangle by the values of the current Style margins, padding and border.

Declaration
public Rectangle Deflate(Rectangle r)
Parameters
Type Name Description
Rectangle r

A Rectangle to deflate.

Returns
Type Description
Rectangle

The resulting Rectangle.

Deflate(Size)

Deflates the specified Size by the values of the current Style margins, padding and border.

Declaration
public Size Deflate(Size size)
Parameters
Type Name Description
Size size

A Size to deflate.

Returns
Type Description
Size

The resulting Size.

Deflate(int, int)

Deflates the specified width and height by the values of the current Style margins, padding and border.

Declaration
public Size Deflate(int width, int height)
Parameters
Type Name Description
int width

A width to deflate.

int height

A height to deflate.

Returns
Type Description
Size

The resulting Size.