[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

PrintQuality

Enum Class PrintQuality

java.lang.Object
java.lang.Enum<PrintQuality>
com.grapecity.documents.excel.PrintQuality
All Implemented Interfaces:
Serializable, Comparable<PrintQuality>, Constable

public enum PrintQuality extends Enum<PrintQuality>
指定工作表页面设置所使用的打印质量。

将此枚举与 IPageSetup.setPrintQuality(PrintQuality) 一起使用,可以控制打印工作表时使用的输出分辨率。默认打印质量为 Dpi600。


 worksheet.getRange("A1:B2").setValue(new Object[][] {
     {"Name", "Value"},
     {"Test", 100}
 });
 worksheet.getPageSetup().setPrintQuality(PrintQuality.Dpi300);
 PrintQuality printQuality = worksheet.getPageSetup().getPrintQuality();
 
  • Enum Constant Details

    • Dpi72

      public static final PrintQuality Dpi72
      每英寸有72个像素。
    • Dpi96

      public static final PrintQuality Dpi96
      每英寸有96个像素。
    • Dpi144

      public static final PrintQuality Dpi144
      每英寸有144个像素。
    • Dpi200

      public static final PrintQuality Dpi200
      每英寸有200个像素。
    • Dpi300

      public static final PrintQuality Dpi300
      每英寸有300个像素。
    • Dpi600

      public static final PrintQuality Dpi600
      每英寸有600个像素。
    • Dpi1200

      public static final PrintQuality Dpi1200
      每英寸有1200个像素。
    • Dpi2400

      public static final PrintQuality Dpi2400
      每英寸有2400个像素。
  • Method Details

    • values

      public static PrintQuality[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PrintQuality valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Gets the integer value of this enum member.
      Returns:
      The zero-based integer value of this enum member.
    • forValue

      public static PrintQuality forValue(int value)
      Gets the enum member for the specified integer value.
      Parameters:
      value - The zero-based integer value.
      Returns:
      The matching PrintQuality member.