Table of Contents

Method WithX

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

WithX(Rectangle, int)

Moves the location of given rectangle to the specified x-coordinate.

public static Rectangle WithX(this Rectangle rectangle, int x)

Parameters

rectangle Rectangle

Rectangle to process.

x int

New rectangle X position.

Returns

Rectangle

Rectangle object with new location.