Table of Contents

Method Transform

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

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

transform Func<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 transform is null.