PrinterUnitConvert
Specifies a series of conversion methods that are useful when interoperating with the Win32 printing API. This class cannot be inherited.
using System.Runtime.CompilerServices;
namespace System.Drawing.Printing
{
public sealed class PrinterUnitConvert
{
internal PrinterUnitConvert()
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public static double Convert(double value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public static Point Convert(Point value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
[System.Runtime.CompilerServices.NullableContext(1)]
public static Margins Convert(Margins value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public static Rectangle Convert(Rectangle value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public static Size Convert(Size value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public static int Convert(int value, PrinterUnit fromUnit, PrinterUnit toUnit)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
}
}