TextReplaceOptions.ReplaceAdjustment
Inheritance: java.lang.Object, java.lang.Enum
public 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.
Fields
Field | Description |
---|---|
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 | (Default) Shifts rest of the line according to changing length of text, length of the line may be changed |
Methods
Method | Description |
---|---|
values() | |
valueOf(String name) | |
getValue() |
None
public static final TextReplaceOptions.ReplaceAdjustment None
No action, replaced text may overlaps rest of the line
AdjustSpaceWidth
public static final TextReplaceOptions.ReplaceAdjustment AdjustSpaceWidth
Tries adjust spaces between words to keep line length
WholeWordsHyphenation
public static final TextReplaceOptions.ReplaceAdjustment WholeWordsHyphenation
Tries distribute words between paragraph lines to keep paragraph’s right field
ShiftRestOfLine
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
values()
public static TextReplaceOptions.ReplaceAdjustment[] values()
Returns: com.aspose.pdf.TextReplaceOptions.ReplaceAdjustment[]
valueOf(String name)
public static TextReplaceOptions.ReplaceAdjustment valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: ReplaceAdjustment
getValue()
public int getValue()
Returns: int