[]
        
(Showing Draft Content)

C1.Framework.Style.Inflate

Inflate Method

Inflate(Rectangle)

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

Declaration
public Rectangle Inflate(Rectangle r)
Public Function Inflate(r As Rectangle) As Rectangle
Parameters
Type Name Description
Rectangle r

A Rectangle to inflate.

Returns
Type Description
Rectangle

The resulting Rectangle.

Inflate(Size)

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

Declaration
public Size Inflate(Size size)
Public Function Inflate(size As Size) As Size
Parameters
Type Name Description
Size size

A Size to inflate.

Returns
Type Description
Size

The resulting Size.

Inflate(int, int)

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

Declaration
public Size Inflate(int width, int height)
Public Function Inflate(width As Integer, height As Integer) As Size
Parameters
Type Name Description
int width

A width to inflate.

int height

A height to inflate.

Returns
Type Description
Size

The resulting Size.