System::Drawing::RectangleF::Inflate method

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)
ParameterTypeDescription
sizeconst SizeF&The SizeF object specifying the amounts to increase the width and height of the rectangle by

See Also

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)
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

See Also

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)
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

ReturnValue

The RectangleF object representing the enlarged rectangle

See Also