PrintQueue.HasToner Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value that indicates if the printer has toner.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

member HasToner : bool with get

Property Value

Type: System.Boolean

true if the current printer has toner; otherwise, false.

Some printer manufacturers may use this signal to indicate that toner is not low. Others may use it to indicate that the toner cartridge is present and properly inserted while using IsTonerLow to indicate that toner is low.

If the printer does not support a signal with this meaning, then the property is always false.

The following example shows how to use this property as part of a survey all printers for possible error status.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top