PrintAction 枚举

定义

指定正在进行的打印操作的类型。

C#
public enum PrintAction
继承
PrintAction

字段

名称 说明
PrintToFile 0

打印操作为打印到文件。

PrintToPreview 1

打印操作为打印预览。

PrintToPrinter 2

打印操作为打印到打印机。

注解

PrintAction类型使用 PrintEventArgs 来指示所发生的事件类型Print

备注

PrintEventArgs.PrintAction不可靠地指示所发生的打印操作的类型,并且在所有情况下都返回 PrintToFile。

适用于

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9