Dela via


PreviewPageCountType Enum

Definition

Describes the basis of the page count.

public enum class PreviewPageCountType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PreviewPageCountType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PreviewPageCountType
Public Enum PreviewPageCountType
Inheritance
PreviewPageCountType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Final 0

Page count is based on final print job total.

Intermediate 1

Page count is based on an intermediate total.

Remarks

During print preview, call SetPreviewPageCount with the value PreviewPageCountType.Intermediate. This way, the print preview can show the first page while the app calculates the rest of the pages. If the actual page count to be printed is known, pass PreviewPageCountType.Final. When PreviewPageCountType.Final is passed to SetPreviewPageCount, SetJobPageCount method is called with the total number of pages.

Applies to