Table of Contents

Method TopRightWithOffset

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

TopRightWithOffset(float, float)

Gets the point which is located at the top-right corner of the rectangle with the applied offset.

public readonly PointD TopRightWithOffset(float offsetX, float offsetY)

Parameters

offsetX float

The horizontal offset to apply.

offsetY float

The vertical offset to apply.

Returns

PointD

A PointD representing the top-right corner of the rectangle after applying the specified offset.

TopRightWithOffset(float)

Returns the coordinates of the top-right corner of the rectangle, offset by the specified amount.

public readonly PointD TopRightWithOffset(float offset)

Parameters

offset float

The amount to offset the top-right corner. The same offset is applied to both the X and Y coordinates.

Returns

PointD

A PointD representing the top-right corner of the rectangle after applying the specified offset.