public static enum TextReplaceOptions.ReplaceAdjustment extends Enum<TextReplaceOptions.ReplaceAdjustment>
Determines action that will be done after replace of text fragment to more short. None - no action, replaced text may overlaps rest of the line; AdjustSpaceWidth - tries adjust spaces between words to keep line length; WholeWordsHyphenation - tries distribute words between paragraph lines to keep paragraph's right field; ShiftRestOfLine - shifts rest of the line according to changing length of text, length of the line may be changed; Default value is ShiftRestOfLine.
Enum Constant and Description |
---|
AdjustSpaceWidth
Tries adjust spaces between words to keep line length
|
None
No action, replaced text may overlaps rest of the line
|
ShiftRestOfLine
(Default) Shifts rest of the line according to changing length of text, length of the line may be changed
|
WholeWordsHyphenation
Tries distribute words between paragraph lines to keep paragraph's right field
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static TextReplaceOptions.ReplaceAdjustment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextReplaceOptions.ReplaceAdjustment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextReplaceOptions.ReplaceAdjustment None
No action, replaced text may overlaps rest of the line
public static final TextReplaceOptions.ReplaceAdjustment AdjustSpaceWidth
Tries adjust spaces between words to keep line length
public static final TextReplaceOptions.ReplaceAdjustment WholeWordsHyphenation
Tries distribute words between paragraph lines to keep paragraph's right field
public static final TextReplaceOptions.ReplaceAdjustment ShiftRestOfLine
(Default) Shifts rest of the line according to changing length of text, length of the line may be changed
public static TextReplaceOptions.ReplaceAdjustment[] values()
for (TextReplaceOptions.ReplaceAdjustment c : TextReplaceOptions.ReplaceAdjustment.values()) System.out.println(c);
public static TextReplaceOptions.ReplaceAdjustment 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 nullpublic int getValue()
Copyright © 2023 Aspose. All Rights Reserved.