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

Name Value Description
None 0 No action, replaced text may overlaps rest of the line
AdjustSpaceWidth 1 Tries adjust spaces between words to keep line length
WholeWordsHyphenation 2 Tries distribute words between paragraph lines to keep paragraph’s right field
ShiftRestOfLine 4 (Default) Shifts rest of the line according to changing length of text, length of the line may be changed

See Also