Inflate()

RectangleF::Inflate(float, float) method

Increases the width and height of the rectangle represented by the current object, maintaining the location of the geometrical center of the rectangle. The width and height are increased in both directions by the specified amounts.

void System::Drawing::RectangleF::Inflate(float width, float height)

Arguments

ParameterTypeDescription
widthfloatThe amount by which the width of the rectangle is to be increased in both directions
heightfloatThe amount by which the height of the rectangle is to be increased in both directions

RectangleF::Inflate(const SizeF&) method

Increases the width and height of the rectangle represented by the current object, maintaining the location of the geometrical center of the rectangle. The width and height are increased in both directions by the amounts specified by width and height values of the specified size object correspondingly.

void System::Drawing::RectangleF::Inflate(const SizeF &size)

Arguments

ParameterTypeDescription
sizeconst SizeF&The SizeF object specifying the amounts to increase the width and height of the rectangle by

RectangleF::Inflate(const RectangleF&, float, float) method

Increases the width and height of the rectangle represented by the specified object, maintaining the location of the geometrical center of the rectangle. The width and height are increased in both directions by the specified amounts.

static RectangleF System::Drawing::RectangleF::Inflate(const RectangleF &rect, float x, float y)

Arguments

ParameterTypeDescription
rectconst RectangleF&A rectangle to inflate
xfloatThe amount by which the width of the rectangle is to be increased in both directions
yfloatThe amount by which the height of the rectangle is to be increased in both directions

Return Value

The RectangleF object representing the enlarged rectangle

See Also