通过


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

属性值

一个 PageScalingFactorRange 对象,其中包含 MaximumScale 表示百分比的值和 MinimumScale 属性 Int32

注解

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

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

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

    属性MinimumScale对象的属性PrintCapabilities.PageScalingFactorRangePageScalingFactorRange是以下值中最小的。

    • 数据类型的 PageScalingScaleWidthMinValue 属性,该属性提供自定义选项的 ScaleWidthScoredProperty 的值。

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

    • 数据类型的 PageScalingScaleMinValue 属性,该属性提供 CustomSquare 选项的 ScaleScoredProperty 值。

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

    • 数据类型的 PageScalingScaleWidthMaxValue 属性,该属性提供自定义选项的 ScaleWidthScoredProperty 的值。

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

    • 提供 CustomSquare选项缩放值的数据类型的 ScoredPropertyMaxValue 属性PageScalingScale

适用于