[]
        
(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>
Specifies the print quality used for a worksheet page setup.

Use this enum with IPageSetup.setPrintQuality(PrintQuality) to control the output resolution used when the worksheet is printed. The default print quality is 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

  • 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.