System.Drawing.Printing.PrinterSettings.IsValid Property

Gets a value indicating whether the PrinterSettings.PrinterName property designates a valid printer.

Syntax

public bool IsValid { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When you get or set some properties, a valid printer is required or else an exception is raised. To avoid exceptions, use the PrinterSettings.IsValid property after setting the PrinterSettings.PrinterName to safely determine if the printer is valid.

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0