PrintPageRange 类

定义

描述打印任务中的页面范围。

public ref class PrintPageRange sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Graphics.Printing.IPrintPageRangeFactory, 393216, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PrintPageRange final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Graphics.Printing.IPrintPageRangeFactory), 393216, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PrintPageRange
function PrintPageRange(firstPage, lastPage)
Public NotInheritable Class PrintPageRange
继承
Object Platform::Object IInspectable PrintPageRange
属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

构造函数

PrintPageRange(Int32)

使用指定的页码初始化 PrintPageRange 类的实例。

PrintPageRange(Int32, Int32)

使用指定的第一页和最后一页码初始化 PrintPageRange 类的实例。

属性

FirstPageNumber

获取打印范围的第一页码。

LastPageNumber

获取打印范围的最后一页码。

适用于