Method Assign
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
otherPaperSizesThe source PaperSizes instance from which to copy paper sizes. Cannot be null.
transformFunc<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
otheris null.