Method Expand
Expand(double, double)
Returns a new rectangle expanded by the specified amounts in both directions.
public Rectangle Expand(double dx, double dy)
Parameters
dxdoubleThe horizontal amount to expand on each side.
dydoubleThe vertical amount to expand on each side.
Returns
Expand(double, double, double, double)
Returns a new rectangle expanded by the specified amounts on each side.
public Rectangle Expand(double left, double top, double right, double bottom)
Parameters
leftdoubleThe horizontal amount to add on the left side (subtracted from Left).
topdoubleThe vertical amount to add on the top side (subtracted from Top).
rightdoubleThe horizontal amount to add on the right side (added to Right).
bottomdoubleThe vertical amount to add on the bottom side (added to Bottom).