System.Drawing.Printing.PrintAction Enumeration

Specifies the type of print operation occurring.

Syntax

public enum PrintAction

Remarks

The System.Drawing.Printing.PrintAction is used by the System.Drawing.Printing.PrintEventArgs type to indicate what type of PrintDocument.Print event is occurring.

Note:

The PrintEventArgs.PrintAction does not reliably indicate the type of print operation occurring, and returns PrintAction.PrintToFile in all cases.

Members

Member NameDescription
PrintToFile

The print operation is printing to a file.

PrintToPreview

The print operation is a print preview.

PrintToPrinter

The print operation is printing to a printer.

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0