Επεξεργασία

Κοινή χρήση μέσω


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

PrintEventArgs()

Initializes a new instance of the PrintEventArgs class.

Properties

Cancel

Gets or sets a value indicating whether the event should be canceled.

(Inherited from CancelEventArgs)
PrintAction

Returns PrintToFile in all cases.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also