Class PrinterUtils
Provides utility methods for printer-related operations.
public static class PrinterUtils
- Inheritance
-
PrinterUtils
Properties
- GetDefaultPrinterNameOverride
Gets or sets a function that returns the name of the default printer, or null if no default printer is set.
- GetPrinterNamesOverride
Gets or sets a function that returns a list of available printer names.
- HasPrintersOverride
Gets or sets an override function that determines whether printers are available on the system. The function should return a nullable boolean value: true if printers are available, false if not, or null to indicate that it is not possible to determine the printer availability.
Methods
- GetDefaultPrinterName()
Gets the name of the default printer for the current operating system, if available.
- GetPaperSizeForSkiaDocument(KnownPaperKind, float?)
Calculates the pixel dimensions of a specified paper size for use with Skia documents, based on the given paper kind and optional raster DPI.
- GetPrinterNames()
Retrieves a read-only list of printer names available on the system.
- HasPrinters()
Determines whether any printers are installed on the system.