Table of Contents

Method WithSize

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

WithSize(Rectangle, Size)

Adjusts a given rectangle with the new size.

public static Rectangle WithSize(this Rectangle rectangle, Size size)

Parameters

rectangle Rectangle

Rectangle to process.

size Size

New rectangle size.

Returns

Rectangle

Rectangle object with new size.