RectangleF.Inflate

Inflate(RectangleF, float, float)

Creates and returns an inflated copy of the specified RectangleF structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.

public static RectangleF Inflate(RectangleF rect, float x, float y)
ParameterTypeDescription
rectRectangleFThe RectangleF to be copied. This rectangle is not modified.
xSingleThe amount to inflate the copy of the rectangle horizontally.
ySingleThe amount to inflate the copy of the rectangle vertically.

Return Value

The inflated RectangleF.

See Also


Inflate(float, float)

Inflates this RectangleF structure by the specified amount.

public void Inflate(float x, float y)
ParameterTypeDescription
xSingleThe amount to inflate this RectangleF structure horizontally.
ySingleThe amount to inflate this RectangleF structure vertically.

See Also


Inflate(SizeF)

Inflates this RectangleF by the specified amount.

public void Inflate(SizeF size)
ParameterTypeDescription
sizeSizeFThe amount to inflate this rectangle.

See Also