Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PackagingProgressEventArgs::NumberCompleted Property

 

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

Namespace:   System.Windows.Xps.Packaging
Assembly:  ReachFramework (in ReachFramework.dll)

public:
property int NumberCompleted {
	int get();
}

Property Value

Type: System::Int32

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

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft