[]
Serializable, Comparable<PasteType>, ConstableUsed with IRange.copy(IRange,PasteOption) or PasteOption.setPasteType(java.util.EnumSet) to control which aspects of the source range are pasted to the destination. Multiple values can be combined using EnumSet.
worksheet.getRange("A1:B2").setValue(new Object[][] {
{"Name", "Price"},
{"Apple", 1.99}
});
worksheet.getRange("A1:B1").getFont().setBold(true);
// Copy only values (without formatting) to another range
PasteOption option = new PasteOption();
option.setPasteType(EnumSet.of(PasteType.Values));
worksheet.getRange("A1:B2").copy(worksheet.getRange("D1"), option);
Enum.EnumDesc<E extends Enum<E>>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 null