Enum TextReplaceOptions.ReplaceAdjustment

TextReplaceOptions.ReplaceAdjustment enumeration

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.

[Flags]
public enum ReplaceAdjustment

Values

NameValueDescription
None0No action, replaced text may overlaps rest of the line
AdjustSpaceWidth1Tries adjust spaces between words to keep line length
WholeWordsHyphenation2Tries distribute words between paragraph lines to keep paragraph’s right field
IsFormFillingMode3Tries to spread the words in the available white space using the paragraph width. If the text overflows, it will be hidden.
ShiftRestOfLine4(Default) Shifts rest of the line according to changing length of text, length of the line may be changed

See Also