Table of Contents

Method WithOffset

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

WithOffset(double, double)

Offsets the location of given rectangle by the specified offset.

public readonly RectD WithOffset(double offsetX, double offsetY)

Parameters

offsetX double

Horizontal offset.

offsetY double

Vertical offset.

Returns

RectD

Rectangle object with new location.

WithOffset(SizeD)

Offsets the location of given rectangle by the specified offset.

public readonly RectD WithOffset(SizeD offset)

Parameters

offset SizeD

Horizontal and vertical offset.

Returns

RectD

Rectangle object with new location.