PackagingProgressEventArgs.NumberCompleted PackagingProgressEventArgs.NumberCompleted PackagingProgressEventArgs.NumberCompleted PackagingProgressEventArgs.NumberCompleted Property

Definition

Gets the number of simultaneous times that the action that is identified in Action has occurred.

public:
 property int NumberCompleted { int get(); };
public int NumberCompleted { get; }
member this.NumberCompleted : int
Public ReadOnly Property NumberCompleted As Integer

Property Value

An Int32 that represents the number of simultaneous times that the action that is identified in Action has occurred.

Remarks

In certain situations and for specific types, multiple packaging progress events occur at the same time. These logically distinct, but temporally identical, events are combined into a single PackagingProgressEvent and NumberCompleted is more than 1. For example, when you print, font subsetting is performed every four pages. Each page must be cached until the subsetting is complete, and then all four FixedPageCompleted events occur at the same time. The resulting PackagingProgressEventArgs sets Action to FixedPageCompleted and sets NumberCompleted to 4.

For example, if a package consists of a single four-page document that uses one font and no images or other resources, the sequence of events might occur as shown in the following table:

The sequence of events for a simple package

AddingDocumentSequence
1

AddingFixedDocument
1

AddingFixedPage
1

AddingFixedPage
1

AddingFixedPage
1

AddingFixedPage
1

FontAdded
1

FixedPageCompleted
4

FixedDocumentCompleted
1

DocumentSequenceCompleted
1

XpsDocumentCommitted
1

Applies to