Table of Contents

Method WithOffset

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

WithOffset(float, float)

Offsets the location of given rectangle by the specified offset.

public readonly RectD WithOffset(float offsetX, float offsetY)

Parameters

offsetX float

Horizontal offset.

offsetY float

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.