Table of Contents

Method WithOffset

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

WithOffset(Rectangle, int, int)

Offsets the location of given rectangle by the specified offset.

public static Rectangle WithOffset(this Rectangle rectangle, int offsetX, int offsetY)

Parameters

rectangle Rectangle

Rectangle to process.

offsetX int

Horizontal offset.

offsetY int

Vertical offset.

Returns

Rectangle

Rectangle object with new location.

WithOffset(Rectangle, Size)

Offsets the location of given rectangle by the specified offset.

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

Parameters

rectangle Rectangle

Rectangle to process.

offset Size

Horizontal and vertical offset.

Returns

Rectangle

Rectangle object with new location.