如何使用WPF确定默认打印机?

Mic*_*tov 8 .net printing wpf

要检索我使用的打印机列表:

new LocalPrintServer().GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections })
Run Code Online (Sandbox Code Playgroud)

如何确定哪些打印机是默认打印机?

注意:使用System.Printing.dll组件.

Mic*_*tov 14

LocalPrintServer.GetDefaultPrintQueue()
Run Code Online (Sandbox Code Playgroud)