[]
        
(Showing Draft Content)

C1.Interop.Rect.Inflate

Inflate Method

Inflate(double, double, double, double)

Inflates the current Rect by the specified amounts on four sides.

Declaration
public void Inflate(double left, double top, double right, double bottom)
Parameters
Type Name Description
double left

The amount to add on the left.

double top

The amount to add at the top.

double right

The amount to add on the right.

double bottom

The amount to add on the bottom.

Inflate(Size)

Inflates the current Rect by a specified Size.

Declaration
public void Inflate(Size size)
Parameters
Type Name Description
Size size

The Size to inflate the current rectangle by.

Inflate(double, double)

Inflates the current Rect by specified horizontal and vertical amounts.

Declaration
public void Inflate(double x, double y)
Parameters
Type Name Description
double x

The amount to add on the left and right of the current Rect.

double y

The amount to add at the top and bottom of the current Rect.

Inflate(Rect, double, double)

Creates a new Rect structure from another RectangleD, inflated by the specified amounts vertically and horizontally.

Declaration
public static Rect Inflate(Rect rc, double x, double y)
Parameters
Type Name Description
Rect rc

The Rect a copy of which is created and inflated.

double x

The amount by which to inflate the resulting rectangle horizontally.

double y

The amount by which to inflate the resulting rectangle vertically.

Returns
Type Description
Rect

The newly created Rect structure.