Редагувати

Поділитися через


XpsSerializationProgressChangedEventArgs Constructor

Definition

Initializes a new instance of the XpsSerializationProgressChangedEventArgs class.

public:
 XpsSerializationProgressChangedEventArgs(System::Windows::Xps::Serialization::XpsWritingProgressChangeLevel writingLevel, int pageNumber, int progressPercentage, System::Object ^ userToken);
public XpsSerializationProgressChangedEventArgs (System.Windows.Xps.Serialization.XpsWritingProgressChangeLevel writingLevel, int pageNumber, int progressPercentage, object userToken);
new System.Windows.Xps.Serialization.XpsSerializationProgressChangedEventArgs : System.Windows.Xps.Serialization.XpsWritingProgressChangeLevel * int * int * obj -> System.Windows.Xps.Serialization.XpsSerializationProgressChangedEventArgs
Public Sub New (writingLevel As XpsWritingProgressChangeLevel, pageNumber As Integer, progressPercentage As Integer, userToken As Object)

Parameters

writingLevel
XpsWritingProgressChangeLevel

A value that specifies whether the change in progress is an additional page completed or an additional document completed.

pageNumber
Int32

A value that specifies the total number of pages or the number of documents that are serialized at the time of the event.

progressPercentage
Int32

A value that specifies the percentage of the total serialization job that is complete.

userToken
Object

A user-supplied object that provides additional information for the event handler.

Remarks

When writingLevel is FixedPageWritingProgress, pageNumber is the number of pages. When writingLevel is FixedDocumentWritingProgress, pageNumber is the number of fixed documents.

Applies to