Table of Contents

Method Assign

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

Assign(PaperSizes, Func<SizeD, SizeD>?)

Copies all paper sizes from the specified instance, optionally applying a transformation to each size before assignment.

public virtual void Assign(PaperSizes other, Func<SizeD, SizeD>? transform = null)

Parameters

other PaperSizes

The source PaperSizes instance from which to copy paper sizes. Cannot be null.

transform Func<SizeD, SizeD>

An optional function that transforms each SizeD value before it is assigned. If null, sizes are assigned directly.

Remarks

This method iterates through all known paper kinds and assigns their sizes from the specified instance. Use the transform parameter to modify each size during assignment, such as for unit conversion or scaling.

Exceptions

ArgumentNullException

Thrown if other is null.