public enum WrapStrategy extends Enum<WrapStrategy>
| Enum Constant and Description |
|---|
CLIP
Lines that are longer than the cell width will be clipped.
|
LEGACY_WRAP
This wrap strategy represents the old Google Sheets wrap strategy where words that are longer than a line are
clipped rather than broken.
|
OVERFLOW_CELL
Lines that are longer than the cell width will be written in the next cell over, so long as that cell is empty.
|
UNSPECIFIED
The wrap strategy is not specified.
|
WRAP
Words that are longer than a line are wrapped at the character level rather than clipped.
|
| Modifier and Type | Method and Description |
|---|---|
static WrapStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WrapStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WrapStrategy UNSPECIFIED
public static final WrapStrategy OVERFLOW_CELL
Example:
| First sentence. | | Manual newline that is very long. <- Text continues into next cell | Next newline. |
public static final WrapStrategy LEGACY_WRAP
Example:
| Cell has a | | loooooooooo| <- Word is clipped. | word. |
public static final WrapStrategy CLIP
Example:
| First sentence. | | Manual newline t| <- Text is clipped | Next newline. |
public static final WrapStrategy WRAP
Example:
| Cell has a | | loooooooooo| <- Word is broken. | ong word. |
public static WrapStrategy[] values()
for (WrapStrategy c : WrapStrategy.values()) System.out.println(c);
public static WrapStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.