Table of Contents

Class RectangleExtensions

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Contains extended functionality for System.Drawing.Rectangle objects.

public static class RectangleExtensions
Inheritance
RectangleExtensions

Methods

DeflatedWithPadding(Rectangle, Padding)

Deflates given rectangle by the specified padding.

Inflated(Rectangle, Size)

Inflates given rectangle by the specified size.

Inflated(Rectangle, int)

Inflates given rectangle by the specified amount.

InflatedWithPadding(Rectangle, Padding)

Inflates given rectangle by the specified padding.

LeftBottom(Rectangle)

Returns location of the bottom-left corner of specified rectangle.

LeftTop(Rectangle)

Returns location of the upper-left corner of specified rectangle.

RightBottom(Rectangle)

Returns location of the bottom-right corner of specified rectangle.

RightTop(Rectangle)

Returns location of the upper-right corner of specified rectangle.

WithHeight(Rectangle, int)

Adjusts a given rectangle with the new height.

WithLocation(Rectangle, Point)

Moves the location of given rectangle to the specified coordinates.

WithOffset(Rectangle, Size)

Offsets the location of given rectangle by the specified offset.

WithOffset(Rectangle, int, int)

Offsets the location of given rectangle by the specified offset.

WithSize(Rectangle, Size)

Adjusts a given rectangle with the new size.

WithWidth(Rectangle, int)

Adjusts a given rectangle with the new width.

WithX(Rectangle, int)

Moves the location of given rectangle to the specified x-coordinate.

WithY(Rectangle, int)

Moves the location of given rectangle to the specified y-coordinate.