PackagingProgressEventArgs.PackagingProgressEventArgs Constructor

Initializes a new instance of the PackagingProgressEventArgs class.

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

public PackagingProgressEventArgs (
	PackagingAction action,
	int numberCompleted
)
public PackagingProgressEventArgs (
	PackagingAction action, 
	int numberCompleted
)
public function PackagingProgressEventArgs (
	action : PackagingAction, 
	numberCompleted : int
)
You cannot use constructors in XAML.

Parameters

action

An indication of what action the packaging process is currently performing.

numberCompleted

The number of simultaneous times that the specified action 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 constructor for 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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: