public enum StringTrimming extends Enum<StringTrimming>
Specifies how to trim characters from a string that does not completely fit into a layout shape.
| Enum Constant and Description |
|---|
Character
Specifies that the text is trimmed to the nearest character.
|
EllipsisCharacter
Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end of a trimmed line.
|
EllipsisPath
The center is removed from trimmed lines and replaced by an ellipsis.
|
EllipsisWord
Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimmed line.
|
None
Specifies no trimming.
|
Word
Specifies that text is trimmed to the nearest word.
|
| Modifier and Type | Method and Description |
|---|---|
static StringTrimming |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringTrimming[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringTrimming None
Specifies no trimming.
public static final StringTrimming Character
Specifies that the text is trimmed to the nearest character.
public static final StringTrimming Word
Specifies that text is trimmed to the nearest word.
public static final StringTrimming EllipsisCharacter
Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end of a trimmed line.
public static final StringTrimming EllipsisWord
Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimmed line.
public static final StringTrimming EllipsisPath
The center is removed from trimmed lines and replaced by an ellipsis. The algorithm keeps as much of the last slash-delimited segment of the line as possible.
public static StringTrimming[] values()
for (StringTrimming c : StringTrimming.values()) System.out.println(c);
public static StringTrimming 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 (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.