Edit

PrintEventArgs Class

Definition

Provides data for the BeginPrint and EndPrint events.

public ref class PrintEventArgs : System::ComponentModel::CancelEventArgs
public class PrintEventArgs : System.ComponentModel.CancelEventArgs
type PrintEventArgs = class
    inherit CancelEventArgs
Public Class PrintEventArgs
Inherits CancelEventArgs
Inheritance
Derived

Remarks

For more information about printing, see the System.Drawing.Printing namespace overview.

Note

In .NET 6 and later versions, the System.Drawing.Common package, which includes this type, is only supported on Windows operating systems. Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. For more information, see System.Drawing.Common only supported on Windows.

Constructors

Name Description
PrintEventArgs()

Initializes a new instance of the PrintEventArgs class.

Properties

Name Description
PrintAction

Returns PrintToFile in all cases.

Applies to

See also