Table of Contents

Method WithOffset

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

WithOffset(Rect, double, double)

Offsets the location of given rectangle by the specified offset.

public static Rect WithOffset(this Rect rectangle, double offsetX, double offsetY)

Parameters

rectangle Rect

Rect to process.

offsetX double

Horizontal offset.

offsetY double

Vertical offset.

Returns

Rect

Rect object with new location.

WithOffset(Rect, Size)

Offsets the location of given rectangle by the specified offset.

public static Rect WithOffset(this Rect rectangle, Size offset)

Parameters

rectangle Rect

Rect to process.

offset Size

Horizontal and vertical offset.

Returns

Rect

Rect object with new location.