Table of Contents

Class RectExtensions

Namespace
Alternet.Common.Wpf
Assembly
Alternet.Common.Wpf.v9.dll
public static class RectExtensions
Inheritance
RectExtensions

Methods

DeflatedWithPadding(Rect, Thickness)

Deflates given rectangle by the specified padding.

Inflated(Rect, double)

Inflates given rectangle by the specified amount.

Inflated(Rect, Size)

Inflates given rectangle by the specified size.

InflatedWithPadding(Rect, Thickness)

Inflates given rectangle by the specified padding.

LeftBottom(Rect)

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

LeftTop(Rect)

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

RightBottom(Rect)

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

RightTop(Rect)

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

WithHeight(Rect, double)

Adjusts a given rectangle with the new height.

WithLocation(Rect, Point)

Moves the location of given rectangle to the specified coordinates.

WithOffset(Rect, double, double)

Offsets the location of given rectangle by the specified offset.

WithOffset(Rect, Size)

Offsets the location of given rectangle by the specified offset.

WithSize(Rect, Size)

Adjusts a given rectangle with the new size.

WithWidth(Rect, double)

Adjusts a given rectangle with the new width.

WithX(Rect, double)

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

WithY(Rect, double)

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