[]
Serializable, Comparable<PrintErrors>, Constable将此枚举与 IPageSetup.setPrintErrors(PrintErrors) 一起使用,可以控制打印输出是按原样显示错误值、隐藏错误值,还是用替代显示内容替换错误值。它适用于打印包含公式错误(如除以零或不可用值)的工作表。
worksheet.getRange("A1").setFormula("=1/0");
worksheet.getPageSetup().setPrintErrors(PrintErrors.Dash);
PrintErrors printErrors = worksheet.getPageSetup().getPrintErrors();
Enum.EnumDesc<E extends Enum<E>>static PrintErrorsforValue(int value) intgetValue()static PrintErrorsstatic PrintErrors[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullvalue - The zero-based integer value.PrintErrors member.