PrintCapabilities.PageScalingFactorRange 属性

定义

获取打印机可在页面中放大或缩小打印图像的最大和最小百分比。

public:
 property System::Printing::PageScalingFactorRange ^ PageScalingFactorRange { System::Printing::PageScalingFactorRange ^ get(); };
public System.Printing.PageScalingFactorRange PageScalingFactorRange { get; }
member this.PageScalingFactorRange : System.Printing.PageScalingFactorRange
Public ReadOnly Property PageScalingFactorRange As PageScalingFactorRange

属性值

具有 PageScalingFactorRangeMaximumScale 属性(包含表示百分比的 MinimumScale 值)的 Int32 对象。

注解

此属性 PageScalingFactorRange 通常表示 打印架构PageScaling 关键字。 但有一些复杂性,如下所示。

  • 如果 PrintCapabilities 文档没有 PageScaling 元素,或者它有一个元素,但没有定义其 CustomSquareCustom 选项;则 PageScalingFactorRange 属性为 null。

  • 在所有其他情况下,属性的行为如下所示。

    属性MinimumScalePageScalingFactorRange对象的 PrintCapabilities.PageScalingFactorRange 属性是下列值的最小值。

    • 提供 Custom 选项 ScaleWidthScoredProperty 的值的数据类型的 MinValue 属性PageScalingScaleWidth

    • 提供 Custom 选项 ScaleHeightScoredProperty 的值的数据类型的 MinValue 属性PageScalingScaleHeight

    • 提供 CustomSquare 选项的 ScaleScoredProperty 值的数据类型的 MinValue 属性PageScalingScale

    属性 MaximumScale 对象的 PrintCapabilities.PageScalingFactorRangePageScalingFactorRange 属性是下列值中最大的一个。

    • 提供 Custom 选项 ScaleWidthScoredProperty 的值的数据类型的 MaxValue 属性PageScalingScaleWidth

    • 提供 Custom 选项 ScaleHeightScoredProperty 的值的数据类型的 MaxValue 属性PageScalingScaleHeight

    • 提供 CustomSquare 选项的 ScaleScoredProperty 值的数据类型的 MaxValue 属性PageScalingScale

适用于