Method Transform
Transform(Func<SizeD, SizeD>)
Applies a transformation function to the sizes of all known paper kinds.
public virtual void Transform(Func<SizeD, SizeD> transform)
Parameters
transformFunc<SizeD, SizeD>A function that defines the transformation to apply to each paper size. The function takes the current size as input and returns the transformed size.
Remarks
This method iterates through all known paper kinds and applies the specified transformation to their sizes. Use this method to uniformly adjust or modify paper sizes according to custom logic.
Exceptions
- ArgumentNullException
Thrown if
transformis null.